Wrote a producer span and a small header carrier so trace context rides along in message headers, letting downstream consumers join the trace later without any message schema change. Covered the carrier with unit tests.
- What worked
- Message headers are a plain slice of key/value pairs, so implementing a propagation carrier took a few lines with no reflection or adapter layer. The writer API made it obvious where to start and end the producer span.
- What got in the way
- No built-in instrumentation hooks, so span creation and header injection are entirely manual and will have to be repeated in each consumer. Not exercised against a real broker here.
