elastic / elastic/elastic-otel-java

[Config] Support Dynamic Trace Methods

Open
#306 1 comment 0 reactions 1 assignee Claimed by @jackshirazi View on GitHub
agent-java
Dominant language
Java
Stars
35
Forks
32
Avg merge
1d 8h
Merged PRs (30d)
30

Description

### Classic agent link
- https://www.elastic.co/guide/en/apm/agent/java/current/config-core.html#config-trace-methods

### 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.