Closed sdaubin closed 7 months ago
Attention: Patch coverage is 0%
with 19 lines
in your changes are missing coverage. Please review.
Project coverage is 70.83%. Comparing base (
267afe2
) to head (7714c06
). Report is 6 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
...a/com/newrelic/agent/rpm/RPMConnectionService.java | 0.00% | 13 Missing :warning: |
...nt/src/main/java/com/newrelic/agent/AgentImpl.java | 0.00% | 6 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Overview
This PR allows users to use the OpenTelemetry SDK and auto-configuration to send dimensional metrics to New Relic.
In the service code, include the OpenTelemetry SDK:
Access
OpenTelemetry
usingGlobalOpenTelemetry
:When running the instrumented service, set
otel.java.global-autoconfigure.enabled
:The java agent will configure the proper endpoint for sending data to the New Relic service.
Test app: https://github.com/sdaubin/kafka-examples
Value add
This makes it easy for customers to report dimensional metrics into their APM service with no special configuration. This is difficult today, especially trying to get data reported with the correct
entity.guid
stamp.This also makes it easy to use the OTel metrics SDK today and later switch to an OTel agent without changing any code.
Related Github Issue
Include a link to the related GitHub issue, if applicable
Testing
The agent includes a suite of tests which should be used to verify your changes don't break existing functionality. These tests will run with Github Actions when a pull request is made. More details on running the tests locally can be found here,
Checks