Allow suppressing nested activities in native instrumentations without dependency on OTel SDK #4641
Labels
enhancement
New feature or request
Stale
Issues and pull requests which have been flagged for closing due to inactivity
Feature Request
Native instrumentations cannot suppress underlying HTTP spans without taking a dependency on OTel. They also cannot enrich/improve generic HTTP spans.
Higher-level (than HTTP) Instrumentations such as Azure SDK, AWS, Elasticsearch clients may want to suppress default generic HTTP instrumentations. Here're the reasons they might not want default HTTP spans:
x-ms-*request-id
headers to correlate with server-side eventsCurrently suppressing generic instrumentation is only possible with
SuppressInstrumentationScope
:Describe the solution you'd like:
Define a well-known key, which, when set in the
Activity.Properties
, suppresses the creation of nested activities. Example shown in #4642Describe alternatives you've considered.
SuppressInstrumentationScope
, which wouldn't work in the case of AOTI'll be happy with any other solution that can be done without taking a dependency on OTel.
Additional Context
The text was updated successfully, but these errors were encountered: