Skip to content

awsxray exporter ignores NO_PROXY env var #38757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Yorkerrr opened this issue Mar 18, 2025 · 1 comment · May be fixed by #39328
Open

awsxray exporter ignores NO_PROXY env var #38757

Yorkerrr opened this issue Mar 18, 2025 · 1 comment · May be fixed by #39328
Labels
bug Something isn't working exporter/awsxray

Comments

@Yorkerrr
Copy link

Component(s)

No response

What happened?

Description

exporter still use https proxy specified in https_proxy environment variable for awsxray, even though no_proxy is set to ".amazonaws.com"

Steps to Reproduce

  1. configure awsxray exporter
  2. set https_proxy env variable
  3. set no_proxy env variable

Expected Result

awsxray exporter ignores https_proxy and pushes traces to aws api directly.

Actual Result

awsxray exporter tries to push traces via https_proxy

Collector version

0.41.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

exporters:
  awsxray:

service:
  pipelines:
    traces:
      receivers: [awsxray]
      exporters: [awsxray]

Log output

Additional context

it seems the issue in aws client util

https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/47d88c882cc688514fe312fce7675920d175db2b/internal/aws/awsutil/conn.go#L58C2-L58C10 it configures proxy from env variable or configuration without processing of no_proxy

@Yorkerrr Yorkerrr added bug Something isn't working needs triage New item requiring triage labels Mar 18, 2025
Copy link
Contributor

Pinging code owners for exporter/awsxrayexporter: @wangzlei @srprash. See Adding Labels via Comments if you do not have permissions to add labels yourself. For example, comment '/label priority:p2 -needs-triaged' to set the priority and remove the needs-triaged label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exporter/awsxray
Projects
None yet
3 participants