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]: OpenTelemetry trace and log error when executing otlp example. #1967

Closed
Taxalo opened this issue Jul 25, 2024 · 7 comments
Closed

[Bug]: OpenTelemetry trace and log error when executing otlp example. #1967

Taxalo opened this issue Jul 25, 2024 · 7 comments
Labels
bug Something isn't working triage:todo Needs to be traiged.

Comments

@Taxalo
Copy link

Taxalo commented Jul 25, 2024

What happened?

If you are using jaeger 1.59.0 and try to execute the opentelemetry-otlp basic-otlp example an error will apear with, saying stream closed because of a broken pipe.

OpenTelemetry log error occurred. Exporter otlp encountered the following errors: the grpc server returns error (Unknown error): , detailed error message: transport error tonic::transport::Error(Transport, hyper::Error(Io, Custom { kind: BrokenPipe, error: "stream closed because of a broken pipe" }))
OpenTelemetry trace error occurred. Exporter otlp encountered the following error(s): the grpc server returns error (Unknown error): , detailed error message: transport error tonic::transport::Error(Transport, hyper::Error(Io, Custom { kind: BrokenPipe, error: "stream closed because of a broken pipe" }))
Error: Other("[ExportErr(Status { code: Unknown, message: \", detailed error message: transport error tonic::transport::Error(Transport, hyper::Error(Io, Custom { kind: BrokenPipe, error: \\\"stream closed because of a broken pipe\\\" }))\" })]")

If you are using jaeger 1.58.0, it will return another error:

OpenTelemetry log error occurred. Exporter otlp encountered the following errors: the grpc server returns error (Operation is not implemented or not supported): , detailed error message: unknown service opentelemetry.proto.collector.logs.v1.LogsService
Error: Other("[ExportErr(Status { code: Unimplemented, message: \", detailed error message: unknown service opentelemetry.proto.collector.metrics.v1.MetricsService\" })]")

This seems to happen when doing a shutdown of meter_provider.

This same issue was reported to tracing-opentelemetry (tokio-rs/tracing-opentelemetry#157) because their example also fails

API Version

0.24.0

SDK Version

0.24.1

What Exporter(s) are you seeing the problem on?

Jaeger

@Taxalo Taxalo added bug Something isn't working triage:todo Needs to be traiged. labels Jul 25, 2024
@lalitb
Copy link
Member

lalitb commented Jul 25, 2024

@Taxalo Are you trying the example against jaeger-all-in-one collector? The existing example only tests against otel-collector, which works fine.

@Taxalo
Copy link
Author

Taxalo commented Jul 25, 2024

I am trying with jaeger-all-in-one, correct.

I understand that it should also work with jaeger, right?

@lalitb
Copy link
Member

lalitb commented Jul 25, 2024

Can you try with bit older version of jaeger-all-in-one, good to know if it ever worked?

@czwinzscher
Copy link

This might be related to jaegertracing/jaeger#5737

@Taxalo
Copy link
Author

Taxalo commented Jul 28, 2024

I have tried from jaeger 1.54 to 1.59. They do not work. Versions prior or equal to 1.58 return the second error I mentioned. Is this only on my end?

@czwinzscher
Copy link

Well the second error says that "Operation is not implemented or not supported". Afaik jaeger only supports traces but not logs and metrics. What happens when you comment out the logs and metrics exporters?

@Taxalo
Copy link
Author

Taxalo commented Jul 29, 2024

Well the second error says that "Operation is not implemented or not supported". Afaik jaeger only supports traces but not logs and metrics. What happens when you comment out the logs and metrics exporters?

You are indeed right, Commenting these exports and using jaeger latest instead of 1.59 fixed this problem

@Taxalo Taxalo closed this as completed Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage:todo Needs to be traiged.
Projects
None yet
Development

No branches or pull requests

3 participants