Skip to content

ConnectionError: HTTPConnectionPool(host='otel-collector', port=4318): Max retries exceeded with url: /v1/traces (... #1

@sentry

Description

@sentry

Sentry Issue: EMBEDDINGS-BACKEND-1V

gaierror: [Errno -2] Name or service not known
  File "urllib3/connection.py", line 200, in _new_conn
    sock = connection.create_connection(
  File "urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):

NameResolutionError: <urllib3.connection.HTTPConnection object at 0x7f759cbee440>: Failed to resolve 'otel-collector' ([Errno -2] Name or service not known)
(3 additional frame(s) were not displayed)
...
  File "http/client.py", line 1278, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "http/client.py", line 1038, in _send_output
    self.send(msg)
  File "http/client.py", line 976, in send
    self.connect()
  File "urllib3/connection.py", line 236, in connect
    self.sock = self._new_conn()
  File "urllib3/connection.py", line 207, in _new_conn
    raise NameResolutionError(self.host, self, e) from e

MaxRetryError: HTTPConnectionPool(host='otel-collector', port=4318): Max retries exceeded with url: /v1/traces (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x7f759cbee440>: Failed to resolve 'otel-collector' ([Errno -2] Name or service not known)"))
  File "requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "urllib3/connectionpool.py", line 844, in urlopen
    retries = retries.increment(
  File "urllib3/util/retry.py", line 515, in increment
    raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]

ConnectionError: HTTPConnectionPool(host='otel-collector', port=4318): Max retries exceeded with url: /v1/traces (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x7f759cbee440>: Failed to resolve 'otel-collector' ([Errno -2] Name or service not known)"))
(3 additional frame(s) were not displayed)
...
  File "requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
  File "requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/otel-auto-instrumentation/opentelemetry/instrumentation/requests/__init__.py", line 132, in instrumented_send
    return wrapped_send(self, request, **kwargs)
  File "requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)

Exception while exporting Span batch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions