DataDog / dd-opentracing-cpp

Datadog Opentracing C++ Client
Apache License 2.0
40 stars 40 forks source link

Add support for `DD_TRACE_HEADER_TAGS` #234

Open ziquanmiao opened 2 years ago

ziquanmiao commented 2 years ago

For a lot of my organization's APIs, we add important information in the request headers of our API calls

Given our use of Envoy-- it does not look like there is functionality to propagate header metadata into span attributes, I am hoping we can have a similar functionality to DD_TRACE_HEADER_TAGS as seen in Datadog's .Net tracer or in Java to propagate these important header arguments into our span attributes for troubleshooting purposes

dgoffredo commented 2 years ago

You might be able to use this:

I'll have to look into it more.

Envoy's Datadog integration is currently frozen, so even if we implemented DD_TRACE_HEADER_TAGS in this library, it wouldn't make it upstream to Envoy for quite a while.