GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

Expose trace IDs in background and cloud event functions

未關閉
#79 3 則留言 18 個 reaction 已指派 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 摘要。