André Bassi
04/28/2023, 3:08 AMglobal:
storageClass: gce-resizable
cloud: gcp
clickhouse:
installCustomStorageClass: true
The instrumented pyhon application we are calling this way:
WORKDIR / app
CMD ["bash", "-c", "OTEL_RESOURCE_ATTRIBUTES=service.name=zagpt-python OTEL_EXPORTER_OTLP_ENDPOINT='<http://signoz-otel-collector.platform.svc.cluster.local:4317>' opentelemetry-instrument --traces_exporter otlp_proto_http --metrics_exporter otlp_proto_http python webhook.py"]
In the log of the signoz-otel-collector pod, it gives me the error:
api-stg-00042-deployment-65f9c6d996-48wtk app Transient error Bad Gateway encountered while exporting span batch, retrying in 32s.
Does anyone have any idea where the error is for not letting me instrument my app service with python and FastAPI?Srikanth Chekuri
04/28/2023, 4:28 AMIn the log of the signoz-otel-collector pod, it gives me the error:
api-stg-00042-deployment-65f9c6d996-48wtk app Transient error Bad Gateway encountered while exporting span batch, retrying in 32s.
This shouldn’t be the signoz-otel-collector pod but rather your application.
OTEL_EXPORTER_OTLP_ENDPOINT='<http://signoz-otel-collector.platform.svc.cluster.local:4317>'
This is an incorrect config. You are using the HTTP exporter, but the endpoint configured is the gRPC port. You either have to change the exporter or the endpoint to HTTP, i.e.--traces_exporter otlp_proto_http --metrics_exporter otlp_proto_http
4318
.André Bassi
04/28/2023, 4:42 AM