[Bug] Replacing JaegerGrpcSpanExporter with OtlpGrpcSpanExporter is not working
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- observability
Research direction
Start with the tracing sample at core/src/main/java/io/temporal/samples/tracing and inspect JaegerUtils.java, then compare the sample's local Jaeger setup with the OtlpGrpcSpanExporter requirements. Reproduce the UNIMPLEMENTED error using the documented dependency and exporter replacement. Done means the sample exports spans that are visible in the local Jaeger instance without relying on deprecated JaegerGrpcSpanExporter.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Java
- Stars
- 258
- Forks
- 189
- Avg merge
- 6d 4h
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from temporalio/samples-java
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
temporalio/samples-java#770 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
temporalio/samples-java#749 ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
temporalio/samples-java#687 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
temporalio/samples-java#635 · 1 comment ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
temporalio/samples-java#606 · 4 reactions ·
All issues in temporalio/samples-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100