Description
🎁 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.