Kishore:
I would start with the OpenTelemetry Agent (
https://opentelemetry.io/docs/zero-code/java/agent/). That comes with a fair number of instrumentations that get automatically enabled (e.g. many inbound/outbound HTTP requests, JDBC drivers, etc). There are additional auto-instrumentation packages that you can add if you need to cover additional libraries/APIs. You can also add manual instrumentation to complement the auto-instrumentation. But I’d start with auto-instrumentation and see how far that gets you.
Using the Agent is nice because it requires no code modifications (to get started, anyway…you may eventually want to add some manual instrumentation) and it can be configured (enabled/disabled, pointed to whatever OpenTelemetry Collector you want to send tracing data/metrics to) via environment variable and/or Java property.
Ryan
Sent from my iPad