Skip to content

how to disable the creation of span at all! #14774

@lfj

Description

@lfj

Is your feature request related to a problem? Please describe.

When using the Java auto-instrumentation agent, if I set OTEL_TRACES_EXPORTER=none, traces are not exported, but spans are still generated at runtime. My understanding is that this still introduces performance overhead.

If my goal is to collect only metrics, is there a way to fully disable span creation so that no tracing data is produced at all? This would help reduce unnecessary runtime costs.

Describe the solution you'd like

When using the Java auto-instrumentation agent, if I set OTEL_TRACES_EXPORTER=none, traces are not exported, but spans are still generated at runtime. My understanding is that this still introduces performance overhead.

If my goal is to collect only metrics, is there a way to fully disable span creation so that no tracing data is produced at all? This would help reduce unnecessary runtime costs.

Describe alternatives you've considered

No response

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions