Open lmolkova opened 1 year ago
From https://github.com/open-telemetry/oteps/pull/220#discussion_r1137764482:
wonder if it would be useful to mention that settle span represents different kinds of settlement: completion (ack), abandoning (nack), dead-lettering, etc
Also, the span kind of the settlement span needs to be discussed and specified. See discussion here: https://github.com/open-telemetry/oteps/pull/220/files#r1190323071
Triaged in the messaging workgroup.
We agreed that we want to have means to convey the settlement intent (p2 from the description above) with the first stable version of messaging semantic conventions. A separate issue was submitted for this: https://github.com/open-telemetry/semantic-conventions/issues/431
Generic conventions for settlement offsets and the settlement type (checkpoint-based or per-message) can be tackled post-stability. We'll leave this issue in place for that and triage it as post-stability.
Settlement in messaging is an important operation that indicates that message was consumed.
Is it worth recording the configuration somehow? E.g. if settlement is configured to happen on consumer, and some messages are not settled at all, it's a clear issue.
It usually makes sense when messages are settled individually and supported by systems like RabbitMQ or Azure Service Bus. Related question: some systems expose information like redelivery count or a boolean flag (JMS). Is it worth recording?
When offset is settled, recording offset as an attribute would be very useful and provide observability into consumer behavior.
Possible solutions:
Additional context:
p1 (expressing different settlement modes) seems like an additive change with a lower priority p2 and p3 provide essential information about consumer behavior. Without them, instrumenting settlement calls does not seem useful.