-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kafka offset for destination and source #1036
Comments
Looks like this example also needs to be brought in sync with the recent changes |
Is there documentation that covers whether it is ever appropriate to have a single |
If I want to search for the produce and consume spans for a given offset and partition I would need to do
If a usecase dictates single Span should never span a consume and a produce it could change these back to
then the search to find both sides would be simplified to
There are pros and cons to both approaches. Should Semantic Conventions support both usecases? Or does |
@gabrieljones we're unifying |
@lmolkova Is there any documentation that speaks to what happens if you have a span that covers both an inbound consume and an outbound publish? Or if such a span is an anti-pattern? |
semantic_conventions/messaging.md#apache-kafka
|
you can find recommendations on span structure in https://github.com/open-telemetry/oteps/blob/main/text/trace/0220-messaging-semantic-conventions-span-structure.md having just one span to describe two operations at once is not how you would typically trace things with OpenTelemetry. |
I don't share that understanding. Attributes under We wouldn't talk about different destinations when having different offsets (otherwise every message would have a different destination), however, currently we treat different partitions (in the same topic) as different destinations. |
I suppose it is indeed the kafka client that chooses the partition, and the kafka broker that reports back the offset. Though partition selection can be completely hidden from the user. However, the offset only has meaning in the context of the selected partition. This contextual relationship led to my intuition that |
What are you trying to achieve?
kafka
offset
needs the same source and destination treatment aspartition
:See open-telemetry/opentelemetry-specification@52a3589#diff-bcd74adc2dce1c2c1808237660730119bae461b333c2adc7829d430e38adb15eR384-R385
What did you expect to see?
Additional context.
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/messaging.md#apache-kafka
Related:
open-telemetry/opentelemetry-specification#2957
The text was updated successfully, but these errors were encountered: