fix(exporter): warn when OTLP gRPC endpoint includes a path - #5654
Open
Shriprasad-P wants to merge 3 commits into
Open
Shriprasad-P wants to merge 3 commits into
Shriprasad-P wants to merge 3 commits into
Conversation
The gRPC exporter silently drops path components from configured endpoints, which can lead to confusion when users expect HTTP behavior. This change adds a clear warning when an endpoint with a non-trivial path is provided. The warning: - Only triggers when parsed_url.netloc exists and path is not empty/slash-only - Avoids false positives on scheme-less 'host:port' endpoints - Directs users to the HTTP exporter if they need path support Fixes open-telemetry#3619
Pull request dashboard statusWaiting on reviewers · refreshed 2026-09-14 18:42 UTC Review the latest changes. Status above doesn't look right?
|
Shriprasad-P
force-pushed
the
cursor/add-endpoint-mismatch-warning-3743
branch
from
September 12, 2026 19:29
be02727 to
4ceca15
Compare
lzchen
reviewed
Sep 14, 2026
| @@ -0,0 +1 @@ | |||
| `opentelemetry-exporter-otlp-proto-grpc`: Add warning when endpoint path is silently dropped by gRPC exporter | |||
Contributor
There was a problem hiding this comment.
Please use the PR # for the changelog name.
Author
There was a problem hiding this comment.
Renamed the changelog entry to .changelog/5654.fixed (PR number) in d48dfe8.
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.
Fixes
Fixes #3619
Summary
Warn when an OTLP gRPC exporter endpoint includes a non-trivial path (which gRPC ignores). Avoids false positives for scheme-less
host:portendpoints. Changelog entry included.Test plan