document how to enable only manual instrumentation (#2028)
* #1994 document how to enable only manual instrumentation Signed-off-by: Sergei Malafeev <sergei@malafeev.org> * Update docs/suppressing-instrumentation.md Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com> Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com> Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
This commit is contained in:
parent
640a7d624b
commit
f3334c3990
|
@ -29,3 +29,8 @@ so that we can try to come up with a better solution to address your need.
|
|||
| System property | Environment variable | Purpose |
|
||||
|--------------------------------|--------------------------------|---------------------------------------------------------------------------------------------------|
|
||||
| otel.javaagent.exclude-classes | OTEL_JAVAAGENT_EXCLUDE_CLASSES | Suppresses all instrumentation for specific classes, format is "my.package.MyClass,my.package2.*" |
|
||||
|
||||
## Enable manual instrumentation only
|
||||
|
||||
You can suppress all auto instrumentations but have support for manual instrumentation with `@WithSpan` and normal API interactions by using
|
||||
`-Dotel.instrumentation.default-enabled=false -Dotel.instrumentation.opentelemetry-annotations.enabled=true`
|
||||
|
|
Loading…
Reference in New Issue