fix(otel): use OTLP HTTP/protobuf to tempo:4318 instead of gRPC:4317
Stack trace showed io.opentelemetry.exporter.internal.http.HttpExporter sending to :4317 — Tempo on 4317 expects gRPC frames, gets HTTP, sends RST. Switch endpoint to :4318 (Tempo OTLP HTTP receiver) and protocol to http/protobuf so the SDK and Tempo speak the same protocol. The gRPC config never took effect — Spring Boot SDK on micrometer-tracing- otlp pulls in only the HTTP exporter by default; gRPC needs the explicit opentelemetry-exporter-otlp jar.
This commit is contained in:
@@ -36,8 +36,8 @@ management:
|
|||||||
otel:
|
otel:
|
||||||
exporter:
|
exporter:
|
||||||
otlp:
|
otlp:
|
||||||
endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://tempo.monitoring:4317}
|
endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://tempo.monitoring:4318}
|
||||||
protocol: grpc
|
protocol: http/protobuf
|
||||||
resource:
|
resource:
|
||||||
attributes:
|
attributes:
|
||||||
service.name: ${spring.application.name}
|
service.name: ${spring.application.name}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ management:
|
|||||||
otel:
|
otel:
|
||||||
exporter:
|
exporter:
|
||||||
otlp:
|
otlp:
|
||||||
endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://tempo.monitoring:4317}
|
endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://tempo.monitoring:4318}
|
||||||
resource:
|
resource:
|
||||||
attributes:
|
attributes:
|
||||||
service.name: ${spring.application.name}
|
service.name: ${spring.application.name}
|
||||||
|
|||||||
Reference in New Issue
Block a user