Skip to content

Conversation

saviogl
Copy link

@saviogl saviogl commented Sep 25, 2025

Add messaging.sidekiq.latency and messaging.sidekiq.retry.count attributes to opentelemetry-instrumentation-sidekiq. These attributes provide meaningful information which one can build monitoring and alerting from.

Copy link

CLA Not Signed

SemanticConventions::Trace::MESSAGING_OPERATION => 'process'
}
attributes[SemanticConventions::Trace::PEER_SERVICE] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
attributes['messaging.sidekiq.latency'] = queue_latency(enqueued_at) if enqueued_at
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We intentionally avoid adding metric values to span attributes.

Is this something that you can derive in the collector or your own implementation of an exporter?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the rationale for that? Favouring the usage of the Metrics API? Though I'd understand the motivation given the tri modal definition for Open Telemetry (Trace, Metrics & Logs) this stipulation might be too restrictive considering the shift happening in the industry where companies like Honeycomb are normalizing cost efficient storage and rich retrieval of high cardinality/dimensionality span data. Recently I came across Sentry's decision of not rolling a Metrics product 1 year in the making in favor of Span Metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants