Instrument eventgate-wikimedia with OTEL
Why:
- We would like to propagate the tracing context across the entirety of our production job queue infrastructure.
- For this to work, eventgate needs to be instrumented with OTEL so that it can inject the tracing context into the headers of Kafka job messages.
What:
- Wire up auto-instrumentation via the OTEL SDK.
- Wrap the Kafka publish step in a span.
- Check for a new optional
append_tracecontext_headersstream configuration flag and inject the tracing context into message headers if set. This will be set for job-related streams. Note that setting headers won't actually work until node-rdkafka-factory!5 (merged) is merged and the new library version is picked up.
Bug: T395038