Support use of W3C TraceContext

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python

調査の方向性

ファイルやテストは指定されていません。まず API の初期化と、すべての HTTP リクエストに使用されるパスを特定し、次に propagators と decorators 向けに推奨されている OpenTelemetry Python library を確認してください。完了条件は、クライアントが起動時に trace context を受け入れるか作成でき、その後で更新でき、すべてのリクエストで適切な traceparent ヘッダーを送信できることです。

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

説明

CDA has implemented support for the W3C TraceContext that OpenTelemetry uses: https://github.com/USACE/cwms-data-api/pull/1800

cwms-python should except or create on API start, add allow update at any time, an appropriate traceparent header to send with all HTTP requests.

This will allow better correlation of issues in the logs.

NOTE: Recommend using the opentelemetry python library to implement the spans, traces, and propagators for this to work. There should be decorators in the library to avoid excessive boilerplate.

主要言語
Python
スター
16
フォーク
11
平均マージ
7時間 35分
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

HydrologicEngineeringCenter/cwms-python のほかの issue

HydrologicEngineeringCenter/cwms-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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