temporalio / temporalio/samples-java
[Bug] Replacing JaegerGrpcSpanExporter with OtlpGrpcSpanExporter is not working
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 258
- Fork
- 189
- Merge medio
- 6g 4h
- PR unite (30g)
- 4
Descrizione
I am trying the tracing example given at https://github.com/temporalio/samples-java/tree/main/core/src/main/java/io/temporal/samples/tracing
I am able to bring up this and able to see the traces in the Jaeger running in my local docker.
But now JaegerGrpcSpanExporter is deprecated, so the suggestion is to use OtlpGrpcSpanExporter.
So to the above working project I have made two changes.
- include implementation "io.opentelemetry:opentelemetry-exporter-otlp:1.32.0"
- Replace JaegerGrpcSpanExporter with OtlpGrpcSpanExporter in JaegerUtils.java
After this change I am not seeing any traces in Jaeger and I see below errors in my service.
Nov 27, 2023 2:39:02 PM io.opentelemetry.exporter.internal.grpc.GrpcExporterUtil logUnimplemented
SEVERE: Failed to export spans. Server responded with UNIMPLEMENTED. This usually means that your collector is not configured with an otlp receiver in the "pipelines" section of the configuration. If export is not desired and you are using OpenTelemetry autoconfiguration or the javaagent, disable export by setting OTEL_TRACES_EXPORTER=none. Full error message: unknown service opentelemetry.proto.collector.trace.v1.TraceService
Please let me know, if I need to add any extra configs to my application.yml
I tried with below two things, it did not help.
-
otel:
traces:
exporter: jaeger
exporter:
jaeger:
endpoint: http://localhost:14250 -
Setting environment variable OTEL_TRACES_EXPORTER=none.
If you can modify this sample to work with OtlpGrpcSpanExporter instead of JaegerGrpcSpanExporter, that would be great.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con il tracing sample in core/src/main/java/io/temporal/samples/tracing e analizza JaegerUtils.java, quindi confronta la configurazione locale di Jaeger del sample con i requisiti di OtlpGrpcSpanExporter. Riproduci l’errore UNIMPLEMENTED usando la dipendenza documentata e la sostituzione dell’exporter. Il lavoro è completato quando il sample esporta span visibili nell’istanza locale di Jaeger senza dipendere da JaegerGrpcSpanExporter, ormai obsoleto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- observability
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100