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

http span and error.type

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
go
領域
observability

調査の方向性

otel.go の 217-224 行目から始め、現在の処理をリンク先の OpenTelemetry HTTP spans 仕様と比較します。レスポンスステータスコードの前後で error.type をどのように表現すべきかを判断します。この計装が、予測可能でカーディナリティの低い値を用いて引用されたルールに従えば、作業は完了です。

索引モデルが issue の本文から書いたものです。

説明

Spec https://opentelemetry.io/docs/specs/semconv/http/http-spans/ says

[5] error.type: If the request fails with an error before response status code was sent or received, error.type SHOULD be set to exception type (its fully-qualified class name, if applicable) or a component-specific low cardinality error identifier.
If response status code was sent or received and status indicates an error according to HTTP span status definition, error.type SHOULD be set to the status code number (represented as a string), an exception type (if thrown) or a component-specific error identifier.
The error.type value SHOULD be predictable and SHOULD have low cardinality. Instrumentations SHOULD document the list of errors they report.
The cardinality of error.type within one instrumentation library SHOULD be low, but telemetry consumers that aggregate data from multiple instrumentation libraries and applications should be prepared for error.type to have high cardinality at query time, when no additional filters are applied.

Relates to this place:
https://github.com/labstack/echo-opentelemetry/blob/a9468a6839c299cdee00c2c86eab31418a86f3b9/otel.go#L217-L224

主要言語
Go
スター
15
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

labstack/echo-opentelemetry のほかの issue

labstack/echo-opentelemetry の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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