GoogleCloudPlatform / functions-framework

The Contract for Building New Function Frameworks
Apache License 2.0
120 stars 12 forks source link

Add Traceparent Param for CloudEvent Signature to FF Contract #48

Closed grant closed 3 years ago

grant commented 3 years ago

Adds option for Function Frameworks to expose traceparent header in CloudEvent signatures.

Read more about the difference between traceparent and x-cloud-trace-context here: https://cloud.google.com/endpoints/docs/openapi/tracing#supported_headers

And more about the CE extension mentioning traceparent here: https://github.com/cloudevents/spec/blob/master/extensions/distributed-tracing.md

Fixes: https://github.com/GoogleCloudPlatform/functions-framework/issues/47

R: @squee1945 @mtraver