GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

Expose trace IDs in background and cloud event functions

オープン
#79 コメント 3 件 リアクション 18 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
968
フォーク
128
PR マージ指標
30日以内にマージされた PR はありません

説明

The `X-Cloud-Trace-Context` header is included in requests, but as we don't expose headers to the event-style functions it is inaccessible. This value is the only means of grouping StackDriver logs by request, and so we should expose it to the user function code.

Background events: The trace ID should be available in the `context` parameter.

CloudEvents: The trace ID should be encoded as an extension on the event, leveraging the `traceparent` extension field as described in https://github.com/cloudevents/spec/blob/master/extensions/distributed-tracing.md.

コントリビューションガイド

コントリビューションガイドを開く

評価

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

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

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