Skip to content

Define default value for OpenTelemetry Trace Exporter in auto-configuration #41841

Closed as not planned
@ThomasVitale

Description

@ThomasVitale

🎁 Enhancement

Context
Spring Boot application using OpenTelemetry for both metrics and traces.

Problem
The auto-configuration for Micrometer OTLP (providing support for OpenTelemetry Metrics) sets the exporter endpoint to http://localhost:4318/v1/metrics, in line with the common developer experience when running a Spring Boot application with the default configuration. However, the auto-configuration for the OpenTelemetry SDK (used for providing support for OpenTelemetry Traces) doesn't set any default value for the exporter endpoint. It used to be set to http://localhost:4318/v1/traces, but it was removed in 214f060 to allow using gRPC instead of HTTP. This behaviour is not the one I would expect from a Spring Boot auto-configuration and is also inconsistent with the Metrics auto-configuration.

Suggestion
It would be nice to bring back the default value for the OpenTelemetry Trace Exporter and find another way to allow replacing the HTTP exporter with a gRPC exporter, at least until #41213 is solved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions