Skip to content

[exporter/awsxray] Fix URL Path and Query #40833

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gquintana
Copy link

Description

When url.query is present among attributes, the output HTTP Url is invalid because url.path is omitted

Link to tracking issue

Fixes #38242

Testing

Added a test with url.query attribute and check output url contains url.path

@gquintana gquintana requested a review from a team as a code owner June 19, 2025 19:33
@gquintana gquintana requested a review from mx-psi June 19, 2025 19:33
Copy link

linux-foundation-easycla bot commented Jun 19, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

Comment on lines 110 to +115
case string(conventions.URLPathKey):
urlParts[key] = value.Str()
hasHTTP = true
case string(conventions.URLQueryKey):
urlParts[key] = value.Str()
hasHTTP = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we just combine these two cases:

Suggested change
case string(conventions.URLPathKey):
urlParts[key] = value.Str()
hasHTTP = true
case string(conventions.URLQueryKey):
urlParts[key] = value.Str()
hasHTTP = true
case string(conventions.URLPathKey), string(conventions.URLQueryKey):
urlParts[key] = value.Str()
hasHTTP = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[awsxrayexporter]: Server URL now missing path and uses query instead
3 participants