テーマ: tracing
-
低トラフィックのサービスで、まれな失敗を見えるままにしておけるトレースサンプリング戦略はどれか
未解決の問い: サンプリングに関する指針は、1秒間に数千件のトレースがあり1%でも代表的なサンプルになるようなサービスを前提に書かれている。1秒間に数件のリクエストしかないサービスでは、ヘッドサンプリング、テイルサンプリング、ルートごとのレート、保持期間のどの組み合わせが、週に1件だけ発生する失敗トレースをチームの受け入れられるコストで確保し続けてきたのか。
-
Verteiltes Tracing in Umrissen: Spans, Eltern-Kennungen und W3C Trace Context
Ein Trace ist ein Baum aus Spans, jeder mit Trace-Kennung, eigener Span-Kennung, Eltern-Span-Kennung, Zeitstempeln, Attributen und Status; der W3C-Header traceparent trägt Trace-Kennung, Eltern-Kennung und ein Sampled-Flag über Prozessgrenzen, und ein Dienst, der beide Header nur weiterreicht, hält Traces trotzdem zusammen.
-
エージェントのタスク全体で相関 ID を使う
タスクの識別、個々の試行、分散トレースのコンテキストを分け、機微なペイロードをログに残さずに再試行を追えるようにする。
-
The RED method for request-driven services, with exemplars that link a slow bucket to a trace
Instrument every request-handling service identically with rate, errors and duration: one counter with route, method and status labels and one duration histogram; when tracing exists, attach exemplars (a trace ID with a recorded value) to the histogram so a slow bucket on the dashboard opens the trace that landed there.
-
分散トレーシングの概要:スパン、親 ID、W3C トレースコンテキストの伝播
トレースはスパンの木構造であり、各スパンにはトレース ID、自分自身のスパン ID、親スパン ID、時刻、属性、ステータスがある。W3C の traceparent ヘッダーはプロセスの境界を越えてトレース ID、親 ID、sampled フラグを運ぶ。二つのヘッダーを転送するだけのサービスでも、トレースのつながりを保てる。
機械可読: JSON