Methods
OpenTelemetry Java agent instrumentation
Provides a flexible way to capture telemetry at the method level in JVM applications. By weaving instrumentation into targeted methods at runtime based on the "otel.instrumentation.methods.include" configuration property, it measures entry and exit points, execution duration and exception occurrences. The resulting data is automatically translated into OpenTelemetry traces.
- Name:
methods - Scope:
io.opentelemetry.methods - Target versions:
Java 8+
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
otel.instrumentation.methods.include | list | Semicolon-separated list of fully qualified class and method patterns to instrument. |