-
Notifications
You must be signed in to change notification settings - Fork 146
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
Document existing OTel support integrated into the Java agent #2099
Comments
A readme document has been added to this PR: c308a60 Below is a copy for reference. OpenTelemetry InstrumentationThis instrumentation module weaves parts of the OpenTelemetry SDK to incorporate bits of OpenTelemetry functionality into the New Relic Java agent. Specifically it can:
New Relic Java Agent ConfigurationTo use the OpenTelemetry Span and dimensional metric functionality incorporated into the New Relic Java agent you must enable the following config options: Configuration via yaml:
Configuration via system property:
Configuration via environment variable:
OpenTelemetry Dimensional MetricsOpenTelemetry APIs can be used to create dimensional metrics which will be detected by the New Relic Java agent and reported to the APM entity being monitored by the New Relic Java agent. To use this functionality, enable the feature as documented above, add the required implementation(platform("io.opentelemetry:opentelemetry-bom:1.44.1"))
implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
implementation("io.opentelemetry:opentelemetry-exporter-otlp") Then utilize the OpenTelemetry APIs to record dimensional metrics: LongCounter longCounter = GlobalOpenTelemetry.get().getMeterProvider().get("my-application").counterBuilder("my.application.counter").build();
longCounter.add(1, Attributes.of(AttributeKey.stringKey("foo"), "bar")); Any recorded dimensional metrics can be found in the Metrics Explorer for the associated APM entity and can be used to build custom dashboards. OpenTelemetry SpansDocumented below are several approaches for incorporating OpenTelemetry Spans into New Relic Java agent traces.
|
Document how all of the following works and provide some example projects:
The text was updated successfully, but these errors were encountered: