-
Notifications
You must be signed in to change notification settings - Fork 150
Update semantic conventions in opentelemetry_oban #528
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
base: main
Are you sure you want to change the base?
Update semantic conventions in opentelemetry_oban #528
Conversation
|
I'd love to see this PR approved. 🙏 |
grzuy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mhanberg,
I'm not a maintainer nor approver, but sharing my feedback in case it helps in any way move this forward.
Thank you 🙏
| [ | ||
| event( | ||
| name: "exception", | ||
| name: :exception, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was already fixed separately in #558
| [ | ||
| event( | ||
| name: "exception", | ||
| name: :exception, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was already fixed separately in #558
| [ | ||
| event( | ||
| name: "exception", | ||
| name: :exception, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was already fixed separately in #558
| :"oban.job.scheduled_at" => DateTime.to_iso8601(scheduled_at) | ||
| } | ||
|
|
||
| span_name = "#{worker} process" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we also need to update the span name per https://opentelemetry.io/docs/specs/semconv/messaging/messaging-spans/#span-name?
| MessagingAttributes.messaging_client_id() => worker, | ||
| MessagingAttributes.messaging_destination_name() => queue, | ||
| MessagingAttributes.messaging_operation_type() => | ||
| MessagingAttributes.messaging_operation_type_values().process, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the warning message displayed in the top of https://opentelemetry.io/docs/specs/semconv/messaging/ means that the migration needs to provide a OTEL_SEMCONV_STABILITY_OPT_IN env var that allows for previous or newer "messaging" conventions?
| Trace.messaging_destination_kind() => :queue, | ||
| MessagingAttributes.messaging_system() => :oban, | ||
| MessagingAttributes.messaging_client_id() => worker, | ||
| MessagingAttributes.messaging_destination_name() => queue, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see here that you're keeping the existing interpretation that a "Destination" is an Oban queue.
For what is worth and for the record, noting that this other pull request (#436 (comment)) is making a different interpretation in that a "Destination" is the Oban Worker and the "Consumer group" is the Oban queue.
What does this PR do?
Updates the opentelemetry_semantic_conventions dependency of opentelemetry_oban to 1.27.
I wasn't sure exactly what the replacement is for the "messaging_destination_kind" key, so I deleted it. Please correct me if this was the wrong decision.messaging destination kind was indeed deleted, as they didn't find a use case for it.