-
Notifications
You must be signed in to change notification settings - Fork 144
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
Linking AWS MQ infrastructure entities #1898
Closed
Closed
Conversation
This file contains 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
Setting cloud.resource_id in DynamoDB instrumentation
…t into dynamodb-arn
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1898 +/- ##
============================================
- Coverage 70.68% 69.76% -0.92%
+ Complexity 9861 9775 -86
============================================
Files 826 829 +3
Lines 39792 39882 +90
Branches 6061 6078 +17
============================================
- Hits 28127 27824 -303
- Misses 8946 9370 +424
+ Partials 2719 2688 -31 ☔ View full report in Codecov by Sentry. |
meiao
reviewed
May 17, 2024
newrelic-api/src/main/java/com/newrelic/api/agent/MessageProduceParameters.java
Outdated
Show resolved
Hide resolved
sdaubin
reviewed
May 22, 2024
agent-bridge/src/main/java/com/newrelic/agent/bridge/DefaultCollectionFactory.java
Show resolved
Hide resolved
aws-mq-rebased is where the MQ changes are pulled to to prevent pollution from dynamo db changes |
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.
Overview
This PR adds new span attributes containing endpoint information from a message broker. This is so the Java Agent can properly link with infrastructure entities generated from AWS MQ.
The new span attributes are the following:
server.address
which contain the message broker hostserver.port
which contain the message broker port.messaging.rabbitmq.destination.routing_key
which is the routing key for a RabbitMQ operationmessaging.destination.name
which will be the destination for a RabbitMQ operation. For producers this will be the exchange name. For consumers this is the queue name.messaging.destination_publish.name
is an otel attribute for message consumers used to indicate what the destination name for the producer is. In the case of RabbitMQ, this is the exchange name.The externals API has new optional parameters to add host and port for message broker spans, via the method
instance(host,port)
.For example
Our JMS (if ActiveMQ is used) and RabbitMQ instrumentation automatically add the span attributes.
To get host and port from ActiveMQ, a new instrumentation module was added called
activemq-client-5.8.0
On top of that, the
rabbit-amqp
andjms
instrumentation was altered to automatically include host and port span attributes.For our RabbitMQ instrumentation, the existing agent attributes
message.routingKey
andmessage.queueName
are also added to spans.In addition the instrumentation was revised so instrumentation module names better match the versions they apply to and to allow host and port information to be reported.
Related Github Issue
#1876
#1832