[FEATURE REQ] Messaging tracing: support disabling per-message tracing #43355
Labels
Client
This issue points to a problem in the data-plane of the library.
Event Hubs
OpenTelemetry
OpenTelemetry instrumentation (not Monitor-specific)
Service Bus
Milestone
Library name
Azure.Messaging.EventHubs, Azure.Messaging.ServiceBus
Please describe the feature.
We had a several questions/issues from users who didn't like message+send spans. In case there is just one message in a batch, then having two spans does not bring any value.
Also, when batch size it huge, per-message tracing becomes too hard and might not make sense.
OTel semconv allow to create a span per message in a batch and a publish span OR create one publish span and reuse publish context on each message being published.
We can do the following:
The text was updated successfully, but these errors were encountered: