Repository navigation
Conversation
…S span structure.
…e lazily. Also associate MessageConsumerState and SessionState directly to simplify logic.
10.1+ seems will require Java 11 which is not compatible with our build currently.
| if (null != span) { | ||
| if (SPAN_KIND_BROKER.equals(span.getTag(SPAN_KIND))) { | ||
| if (null == brokerSpans) { | ||
| brokerSpans = new ArrayList<>(); |
There was a problem hiding this comment.
I'm wondering if we can extract some of this code to share between messaging libraries. Although, it might be premature to do so at this point.
I'm also still wondering if we should push the notion of span session into core.
|
|
||
| private final String spanKind; | ||
| private final String spanType; | ||
| private final String serviceName; |
There was a problem hiding this comment.
Is the effectively static? If so, it would optimize better as a static final.
| && !Config.get().getJMSPropagationDisabledQueues().contains(destinationName))) { | ||
| propagate().inject(span, message, SETTER); | ||
| } | ||
| if (Config.get().isJMSPropagationEnabled() |
There was a problem hiding this comment.
Generally, I'd like to the Config bits into static finals, so they'll optimize better.
That's a new requirement, so I won't block the review based on that.
Maybe we wait until we do a bigger discussion around Config.
| destinationName = ((Topic) destination).getTopicName(); | ||
| } | ||
| } catch (final JMSException e) { | ||
| } catch (Exception ignored) { |
There was a problem hiding this comment.
Should we have a way to report when an unexpected exception occurs?
I'm concerned that we might be burying exceptions and have no way to detect or debug it. If make that change, we'll have to take care about the performance.
| .and(isPublic()) | ||
| .and(takesArgument(0, named("javax.jms.Destination"))), | ||
| getClass().getName() + "$CreateConsumer"); | ||
| if (!Config.get().isJmsLegacyTracingEnabled()) { |
There was a problem hiding this comment.
Nice. I'm wondering if a better pattern for handling configuration differences would be to have different variations of instrumentation methods.
|
replaced by #3054 |
WIP