semantic-conventions icon indicating copy to clipboard operation
semantic-conventions copied to clipboard

Messaging batch-publish: make per-message tracing disableable

Open lmolkova opened this issue 1 year ago • 0 comments

Based on the discussion in https://github.com/open-telemetry/opentelemetry-specification/issues/4123, we should recommend instrumentation libraries to let users control per-message tracing:

  • it should be possible to opt-out of per-message tracing (via sampling or tracer suppression)
  • if user opts-out, we can fallback to injecting ambient context or publish span context - this should be specified.
  • maybe we can call out that for single-publish scenarios per-message span SHOULD NOT be created

Currently spec leaves it up to the instrumentation library to decide whether to trace messages independently or not.

lmolkova avatar Jul 23 '24 20:07 lmolkova