feat(otel): Add OpenTelemetry distributed tracing support#1769
Open
jbonofre wants to merge 2 commits into
Open
feat(otel): Add OpenTelemetry distributed tracing support#1769jbonofre wants to merge 2 commits into
jbonofre wants to merge 2 commits into
Conversation
jbonofre
force-pushed
the
add-opentelemetry-support
branch
from
March 26, 2026 05:08
0e1e69d to
176f5f5
Compare
jeanouii
reviewed
Apr 10, 2026
jeanouii
left a comment
Contributor
There was a problem hiding this comment.
Great PR and a good start.
I've added a couple of notes and questions.
It's been a while since I worked with this.
jbonofre
force-pushed
the
add-opentelemetry-support
branch
from
July 9, 2026 15:16
176f5f5 to
b55e0a6
Compare
New activemq-opentelemetry module that instruments the broker using the OpenTelemetry API. The plugin traces send (PRODUCER), dispatch (CONSUMER), and acknowledge (INTERNAL) operations with W3C TraceContext propagation and standard OTel messaging semantic conventions. Depends on opentelemetry-api only; users bring their own SDK and exporter at runtime. Included in the distribution with example configuration.
- Fix OTel semantic convention attribute names: messaging.system -> messaging.system.name messaging.operation -> messaging.operation.type messaging.client_id -> messaging.client.id (dot notation) - Initialize propagator and tracer once in constructor instead of per-invocation - Bound dispatchSpans map to prevent unbounded growth / span leaks; oldest span is ended and evicted when the limit is exceeded - Add comment explaining setMarshalledProperties(null) in TextMapSetter - Replace Thread.sleep() in tests with Wait.waitFor() pattern - Document topic fan-out span behavior in class Javadoc
jbonofre
force-pushed
the
add-opentelemetry-support
branch
from
July 16, 2026 12:06
b55e0a6 to
225e05a
Compare
Member
Author
|
@cshannon wdyt about this one for 6.3.0? |
Contributor
I haven't looked at this at all and this definitely needs to wait. Did
I think 6.4.0 makes more sense, I don't think anyone else has paid attention to this (I know I haven't) and adding a major new framework like this is a pretty big deal, even if it's off by default. I think it would be good to have some more time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New activemq-opentelemetry module that instruments the broker using the OpenTelemetry API. The plugin traces send (PRODUCER), dispatch (CONSUMER), and acknowledge (INTERNAL) operations with W3C TraceContext propagation and standard OTel messaging semantic conventions.
Depends on opentelemetry-api only; users bring their own SDK and exporter at runtime. Included in the distribution with example configuration. Maybe we should add a default SDK/exporter in the ActiveMQ distribution, just wondering 😄