Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

perf: avoid creating exceptions when no hook implements the error stage

オープン
#2,056 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@toddbaert がすでに取り組んでいます。

2026年10月8日 から。

  • #2057 @toddbaert による — オープン

評価

この issue はまだ評価されていません。

説明

enhancement

When no provider is set (or the provider is NOT_READY/FATAL), evaluateFlag throws an exception internally to reach its catch block. Similarly, for provider-returned errors, we create an exception to pass to error hooks, even if no hook implements error.

The ProviderNotReadyError stack trace is suppressed, but APM agents that instrument exceptions can still capture their own, which adds overhead to every evaluation.

Proposal:

  • don't throw for NOT_READY/FATAL; build the error details directly
  • only create the exception if an attached hook actually overrides error (detected once per hook class)

Results (callers see the same errorCode, reason and value) are unchanged. Hooks that don't override error keep their no-op default, and the SDK just skips calling it.

主要言語
Java
スター
128
フォーク
60
平均マージ
19時間 11分
マージ済み PR(30日)
19

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

open-feature/java-sdk のほかの issue

open-feature/java-sdk の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。