Transient error StatusCode.UNAVAILABLE encountered while exporting logs #3266
Replies: 6 comments
-
When you send from POSTMAN you are most likely sending using HTTP. The example shared uses gRPC. Please make sure you use the gRPC port. |
Beta Was this translation helpful? Give feedback.
-
Exactly, for those who need to do GRPC tests via POSTMAN, follow below how to configure. |
Beta Was this translation helpful? Give feedback.
-
Can I assume your question is resolved and close this? |
Beta Was this translation helpful? Give feedback.
-
I believe the problem is not that. I noticed that there is a closed PR in the opentelemetry-collector project, but not resolved. |
Beta Was this translation helpful? Give feedback.
-
The example uses the gRPC exporter, which will not work with the HTTP endpoint. Either use the HTTP exporter or give a valid gRPC endpoint. This is not an issue with the SDK/Exporter but rather config/ network. Since this is not a bug and there is no action item, I am converting this to a GitHub discussion. |
Beta Was this translation helpful? Give feedback.
-
Another reason that this could happen is due to the |
Beta Was this translation helpful? Give feedback.
-
I have an Opentelemetry that is running on Kubernetes on port 80 or 443.
https://artifacthub.io/packages/helm/opentelemetry-helm/opentelemetry-collector
But when I try to send a log via grpc using the python sdk (https://github.com/open-telemetry/opentelemetry-python), I am getting this warning, and the log is not sent:
WARNING:opentelemetry.exporter.otlp.proto.grpc.exporter:Transient error StatusCode.UNAVAILABLE encountered while exporting logs, retrying in 1s.
WARNING:opentelemetry.exporter.otlp.proto.grpc.exporter:Transient error StatusCode.UNAVAILABLE encountered while exporting logs, retrying in 2s.
WARNING:opentelemetry.exporter.otlp.proto.grpc.exporter:Transient error StatusCode.UNAVAILABLE encountered while exporting logs, retrying in 4s.
WARNING:opentelemetry.exporter.otlp.proto.grpc.exporter:Transient error StatusCode.UNAVAILABLE encountered while exporting logs, retrying in 8s.
WARNING:opentelemetry.exporter.otlp.proto.grpc.exporter:Transient error StatusCode.UNAVAILABLE encountered while exporting logs, retrying in 16s.
When I send the LOG via POSTMAN, I can send it normally.
Have you been through this?
script test:
pip show
Beta Was this translation helpful? Give feedback.
All reactions