After upgrading from spring boot 2.7.10 (using sleuth) to 3.1 (micrometer-tracing) I updated my otel exporter config from
SPRING_SLEUTH_OTEL_EXPORTER_OTLP_ENDPOINT=http://tempo.xxx.svc.cluster.local:4317
to
MANAGEMENT_OTLP_TRACING_ENDPOINT=http://tempo.xxx.svc.cluster.local:4317
The log is now showing the following error:
{
"@timestamp": "2023-06-08T17:56:22.333359047-03:00",
"level": "ERROR",
"message": "Failed to export spans. The request could not be executed. Full error message: Connection reset",
"traceId": "",
"spanId": "",
"logger": "io.opentelemetry.exporter.internal.okhttp.OkHttpExporter",
"thread": "OkHttp http://tempo.observability.svc.cluster.local:4317/..."
}
Has anyone had similar issue ?
version:
- spring boot: 3.1
- micrometer-tracing: 1.1
- opentelemetry-exporter-otlp: 1.26.0
- tempo: 2.1
Spring boot 3.1 OtlpAutoConfiguration uses OtlpHttpSpanExporter so we need to override the configuration with: