OTel hooks: align error attributes and exception recording with spec Appendix D
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- ruby
調査の方向性
Start with metrics_hook.rb:45-48, metrics_hook.rb:73-75, and traces_hook.rb:25-28; read the OpenFeature SDK change in issue #339 and spec Appendix D to confirm the error code and exception requirements. Then inspect the hook tests and span APIs to see how error stages and exception recording are handled. Done means both hooks emit the specified error attributes and TracesHook#error records exceptions with an option to disable it.
索引モデルが issue の本文から書いたものです。
説明
The OTel hooks don't yet follow Appendix D (Observability) of spec v0.9.0. This was moved here from open-feature/ruby-sdk#300: the SDK's Telemetry.create_evaluation_event already produces the v0.9.0 attributes, and the remaining gaps are in this gem.
Gaps
error.typeis the exception class, not the error code.MetricsHook#errorsets"error.type" => exception.class.name.downcase(metrics_hook.rb:45-48). Appendix D mapserror.typeto the evaluation'serror code, in lowercase snake_case (for exampleflag_not_found). Since open-feature/ruby-sdk#339, errors raised through hooks carry anerror_code(OpenFeature::SDK::EvaluationError), so the code is available.error.messageis renamed tofeature_flag.error.message. Both hooks remap the SDK'serror.messageattribute (metrics_hook.rb:73-75,traces_hook.rb:25-28). Appendix D and current OTel semantic conventions useerror.message. Dropping the remap is a breaking change for existing dashboards.- Exceptions aren't recorded in the
errorstage.TracesHookhas noerrorstage. Appendix D says the error stage records exception information (record_exceptionon spans) unless configured to exclude it.
Done means
error.typecomes from the error code, lowercased.- Both hooks emit
error.message, released as a breaking change. TracesHook#errorrecords the exception on the current span, with an option to turn that off.
- 主要言語
- Ruby
- スター
- 5
- フォーク
- 13
- 平均マージ
- 13時間 36分
- マージ済み PR(30日)
- 50
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
open-feature/ruby-sdk-contrib のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
open-feature/ruby-sdk-contrib#340 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] (ofrep) Error responses are parsed with snake_case keys, so no spec-conformant 400 can be parsed対応中かも @yuminn-k が 25 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
open-feature/ruby-sdk-contrib#283 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 57/100
open-feature/ruby-sdk-contrib#297 ·
メンテナーはふだん 1 日以内に返信
-
Dependency Dashboardオープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
open-feature/ruby-sdk-contrib#101 ·
メンテナーはふだん 1 日以内に返信
open-feature/ruby-sdk-contrib の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
zold-io/wts.zold.io#651 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
erkamyaman/rust-anything#788 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
TheOdinProject/curriculum#31579 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
hanami/hanami-cli#485 ·
メンテナーはふだん 1 日以内に返信