Skip to content

[exporter/awsxrayexporter] validate command fails because it tries to check even an execution environment #40450

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
rmatsuoka opened this issue Jun 3, 2025 · 1 comment
Labels
bug Something isn't working exporter/awsxray needs triage New item requiring triage

Comments

@rmatsuoka
Copy link

rmatsuoka commented Jun 3, 2025

Component(s)

exporter/awsxray

What happened?

Description

When upgrading OpenTelemetry Collector from v0.119.0 to v0.127.0, config file validation started failing.

During validation, awsxray exporter seems to try to fetch AWS environment information (such as environment variables, ec2 metadata, ...) though the validation runs on my computer.

Is this behavior, where it tries to validate an execution environment, a bug?
I believe that validate command is intended for validating the config file itself and should not check the execution environment, as it's most often run on local machines or in CI environments.

Steps to Reproduce

otelcol validate --config ./config.yaml

Expected Result

No output. Validation would succeed as did on v0.119.0.

Actual Result

Error: failed to build pipelines: failed to create "awsxray" exporter for data type "traces": cannot fetch region variable from config file, environment variables and ec2 metadata
2025/06/03 10:08:43 collector server run finished with error: failed to build pipelines: failed to create "awsxray" exporter for data type "traces": cannot fetch region variable from config file, environment variables and ec2 metadata

Collector version

v0.127.0

Environment information

Environment

OS: Docker on macOS

OpenTelemetry Collector configuration

---

receivers:
  otlp:
    protocols:
      grpc:

processors:
  batch:

exporters:
  awsxray:

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [awsxray]

Log output

Error: failed to build pipelines: failed to create "awsxray" exporter for data type "traces": cannot fetch region variable from config file, environment variables and ec2 metadata
2025/06/03 10:08:43 collector server run finished with error: failed to build pipelines: failed to create "awsxray" exporter for data type "traces": cannot fetch region variable from config file, environment variables and ec2 metadata

Additional context

No response

@rmatsuoka rmatsuoka added bug Something isn't working needs triage New item requiring triage labels Jun 3, 2025
Copy link
Contributor

github-actions bot commented Jun 3, 2025

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@rmatsuoka rmatsuoka changed the title validate command fails because it tries to check even an execution environment. [exporter/awsxrayexporter] validate command fails because it tries to check even an execution environment Jun 3, 2025
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 needs triage New item requiring triage
Projects
None yet
Development

No branches or pull requests

1 participant