Home / Companies / New Relic / Blog / Post Details
Content Deep Dive

Instrument a Java app with OpenTelemetry

Blog post from New Relic

Post Details
Company
Date Published
Author
Jack Berg, New Relic Engineer, OpenTelemetry Java Maintainer
Word Count
1,433
Company Posts That Month
18
Language
English
Hacker News Points
-
Post removed?
No
Summary

OpenTelemetry Java provides a framework for instrumenting Java applications to capture telemetry data, featuring an API and SDK for manual instrumentation and a Java agent for automatic instrumentation. The API is used by developers to add custom instrumentation, while the SDK processes and exports the collected data. The Java agent offers an auto-instrumentation option by modifying bytecode of popular libraries to collect telemetry data with minimal configuration. This blog post guides readers on manually instrumenting applications using OpenTelemetry's API and SDK, and demonstrates auto-instrumentation with the Java agent, using examples from the newrelic-opentelemetry-examples GitHub repository. It discusses the setup of custom tracing and metrics, highlights semantic conventions for better data interpretation, and emphasizes configuring the SDK early in the application lifecycle to ensure proper data processing and exporting. The post is part of a series exploring OpenTelemetry, with future installments focused on sending data to backend platforms for visualization and analysis.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
OpenTelemetry 55 397 17 9 +4%
Observability 7 708 117 43 +73%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.