fix: respect OTEL_EXPORTER_OTLP_ENDPOINT when setting trace/log/metrics endpoints#732
Merged
fix: respect OTEL_EXPORTER_OTLP_ENDPOINT when setting trace/log/metrics endpoints#732
Conversation
…ints When OTEL_EXPORTER_OTLP_ENDPOINT is set, skip defaulting the specific trace and log endpoint vars so the base URL is honored by the OTel SDK. This was a regression from #729 which dropped the guard.
wangzlei
approved these changes
Apr 23, 2026
liustve
added a commit
to aws-observability/aws-otel-js-instrumentation
that referenced
this pull request
Apr 24, 2026
*Description of changes* - When `OTEL_EXPORTER_OTLP_ENDPOINT` is set, skip setting signal-specific endpoints derives them from the base URL - Aligns with the Python distro behavior (aws-observability/aws-otel-python-instrumentation#732)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes:
OTEL_EXPORTER_OTLP_ENDPOINTguard that was dropped in feat: auto-detect and mutually exclude native vs third-party agentic instrumentors #729OTEL_EXPORTER_OTLP_ENDPOINTis set (e.g. to a local collector), skip defaultingOTEL_EXPORTER_OTLP_TRACES_ENDPOINTandOTEL_EXPORTER_OTLP_LOGS_ENDPOINTto the direct-to-AWS URLs so the OTel SDK honors the base URL