-
Notifications
You must be signed in to change notification settings - Fork 28
Description
๐ Feature Proposal
Allow disabling / configuring of OTEL trace usage
Motivation
Since upgrading @elastic/elasticsearch to 8.18.2 and @elastic/transport 8.9.7, our OTEL trace collector gets spammed with unwanted traces (ping, bulk, cluster.health, ...). We would like to disable those, but the code does not allow for configuration at all. Since another point in the service is also using @opentelemetry/api and that cannot be disabled.
Bonus request: some created spans like search and count operations are nice to have, but there should be some way to make them child-spans of our existing spans. Haven't looked into it deeper yet why it does not work automatically yet, but again, missing docs and missing config options here.
Example
maybe read an env var for surpression:
ES_TRANSPORT_OTEL=disabled