Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Replacing JaegerGrpcSpanExporter with OtlpGrpcSpanExporter is not working #552

Open
guruprasadkk opened this issue Nov 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@guruprasadkk
Copy link

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.

  1. otel:
    traces:
    exporter: jaeger
    exporter:
    jaeger:
    endpoint: http://localhost:14250

  2. Setting environment variable OTEL_TRACES_EXPORTER=none.

If you can modify this sample to work with OtlpGrpcSpanExporter instead of JaegerGrpcSpanExporter, that would be great.

@guruprasadkk guruprasadkk added the bug Something isn't working label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant