Skip to content

confusing warning about GlobalOpenTelemetry #7880

@zeitlinger

Description

@zeitlinger

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

This log line is emitted:

AutoConfiguredOpenTelemetrySdk found on classpath but automatic configuration is disabled. To enable, run your JVM with -Dotel.java.global-autoconfigure.enabled=true.

It's caused by the SDK (not the user) and is thus not actionable.

Cause:

private Supplier<MeterProvider> meterProviderSupplier = GlobalOpenTelemetry::getMeterProvider;

Describe the solution you'd like

GlobalOpenTelemetry.getOrNoop should be used instead.

Other potential changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestSuggest an idea for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions