Idimmachukwu Okoro
01/26/2023, 11:52 AMOTEL_RESOURCE_ATTRIBUTES="service.namespace=api,deployment.environment=dev" OTEL_EXPORTER_OTLP_ENDPOINT="<http://localhost:4318>" opentelemetry-instrument --service_name api_staging --traces_exporter "otlp_proto_http" --metrics_exporter "otlp_proto_http" gunicorn -c config.py main:app
But I keep getting this error on the console
HTTPConnectionPool(host='otel-collector', port=4318): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9561486e00>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
How can I resolve this?