Skip to content

Allow disabling OTEL Tracer #284

@BlitzInternet

Description

@BlitzInternet

🚀 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions