'Configure Yaml Config Spring Sleuth With Grafana Tempo
I tried to configure Spring Sleuth and grafana tempo I got an error like this please help I've been stuck for a couple days :
2022-04-18 11:37:11.615 DEBUG 21240 --- [_WorkerThread-1] i.o.s.t.e.BatchSpanProcessor$Worker : Exporter failed {}
2022-04-18 11:37:16.940 DEBUG 21240 --- [_WorkerThread-1] i.o.s.t.e.BatchSpanProcessor$Worker : Exporter failed {}
2022-04-18 11:37:22.267 DEBUG 21240 --- [_WorkerThread-1] i.o.s.t.e.BatchSpanProcessor$Worker : Exporter failed {}
2022-04-18 11:37:27.594 WARN 21240 --- [ault-executor-0] i.o.e.otlp.trace.OtlpGrpcSpanExporter : Failed to export spans. Error message: UNAUTHENTICATED: HTTP status code 401
invalid content-type: application/json
headers: Metadata(:status=401,content-type=application/json,x-content-type-options=nosniff,content-length=74,date=Mon, 18 Apr 2022 04:37:27 GMT,via=1.1 google,alt-svc=clear)
DATA-----------------------------
{"status":"error","error":"authentication error: no credentials provided"}
DATA-----------------------------
{}
here is my config.yaml
spring:
application:
name: my app
jackson:
default-property-inclusion: NON_NULL
profiles:
active: local
servlet:
multipart:
max-file-size: 10MB
max-request-size: 12MB
sleuth:
enabled: true
otel:
config:
trace-id-ratio-based: 1.0
exporter:
otlp:
endpoint: https://tempo-eu-west-0.grafana.net/tempo
headers:
authorization: xxxxx
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
