Open
Description
Classic agent link
What it does
Defines a list of methods for which to create a transaction or span.
Implementation difficulty, location, and dynamism
- The otel equivalent of trace_methods is otel.instrumentation.methods.include which doesn't support wildcards https://opentelemetry.io/docs/instrumentation/java/automatic/annotations/#creating-spans-around-methods-with-otelinstrumentationmethodsinclude
- If wildcard tracing is required, we will need to either
-- use our implementation or
-- implement it into the otel one
-- or provide a utility that reads the class and generates the non-wildcard pattern - Not currently dynamic, but maybe can make it so without too much trouble
@akhileshpok please feedback on whether wildcard support is needed, eg the classic agent allows org.example.MyClass#myMe*od
to specify multiple packages/classes/methods whereas the current OpenTelemetry agent doesn't support wildcards and you need to explicitly define each method that will be traced