Add documentation for suppression by type flag (#3990)
* Update suppressing-instrumentation.md * lint * better suppression strategy description
This commit is contained in:
parent
3ae6b46930
commit
dc69d5fb56
|
@ -119,3 +119,8 @@ so that we can try to come up with a better solution to address your need.
|
|||
|
||||
You can suppress all auto instrumentations but have support for manual instrumentation with `@WithSpan` and normal API interactions by using
|
||||
`-Dotel.instrumentation.common.default-enabled=false -Dotel.instrumentation.opentelemetry-annotations.enabled=true`
|
||||
|
||||
## Enable instrumentation suppression by type
|
||||
|
||||
By default the agent suppresses all nested `CLIENT` instrumentations, without discerning their actual type (e.g. a database `CLIENT` using an HTTP client that generates `CLIENT` spans too).
|
||||
By setting `-Dotel.instrumentation.experimental.outgoing-span-suppression-by-type=true` you can enable a more sophisticated suppression strategy: only `CLIENT` spans of the same types (e.g. DB, HTTP, RPC) will be suppressed.
|
||||
|
|
Loading…
Reference in New Issue