|
|
|
Back to newsletter 256 contents
OpenTelemetry is fast gaining ground in the APM industry. What exactly is it?
1. If you just want to publish metrics from your Java app, with no code changes:
1a. You get the java agent jar and start your app with -javaagent
. This is the same as any of the various APM agents available, such as the Elastic APM Java agent (which I work on). The Elastic APM Java agent has other startup options, such as remote attaching instead of only using javaagent
1b. You need to have the metrics collected by some server that understands the output format and ideally allows display of the metrics in some useful way (for example Elastic APM)
2. If you want to add custom instrumentation to your app:
2a. You include opentelemetry-api as a dependency, and add code using that API. When executed this won't publish metrics as the API backend is a no-op
2b. To publish metrics, you can include opentelemetry-sdk as a dependency, or simply start your app with any OpenTelemetry compatible java agent (such as the OpenTelemetry one, or the Elastic APM Java agent).
Now on to all the usual newsletter list of links, tips, tools, news and articles, and as usual I've extracted all the tips into this month's tips page including the Java agent tips
Java performance tuning related news
Java performance tuning related tools
Back to newsletter 256 contents