Skip to content

OTLP GRPC exporters don't respect domain NO_PROXY settings due to grpc bug #5976

Open
@akats7

Description

@akats7

Description

Brought up this issue in the collector repo, realized it should likely be applied here as well.

There's a bug in grpc-go (here and here) related to the way NewClient does hostname resolution where now the host is resolved before the ProxyFromEnvironment function is called, due to this domain based no_proxy settings are not applied as the comparison is done only against the ip. localhost is not affected.

The grpc team is working on a fix but it seems like until that's in place we might want to revert to DialContext instead of NewClient.

Environment

  • Go Version: 1.23.2
  • opentelemetry-go version: 1.32.0
  • grpc version: 1.67.1

Steps To Reproduce

Set HTTP/S_PROXY
Init OTLP GRPC client with target endpoint
Include endpoint sub-domain in NO_PROXY

Expected behavior

HTTP/S_PROXY setting should still be applied

Metadata

Metadata

Assignees

Labels

blocked:designWaiting on design work to be completed before implementation can start.bugSomething isn't workingpkg:exporter:otlpRelated to the OTLP exporter package

Type

No type

Projects

  • Status

    Low priority

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions