Skip to content

Conversation

@ezhang6811
Copy link
Contributor

Description

Set namespace="remote" for producer spans so that X-ray will infer a downstream service node. Changed consumer spans to be segments so that they can correlate to their own node while being downstream from the producer.

Link to tracking issue

Fixes #40995

Testing

Added unit tests for producer span and updated unit tests for consumer spans.

@ezhang6811 ezhang6811 requested a review from a team as a code owner September 11, 2025 00:24
@github-actions
Copy link
Contributor

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

@github-actions github-actions bot added first-time contributor PRs made by new contributors exporter/awsxray labels Sep 11, 2025
Copy link
Contributor

@wangzlei wangzlei left a comment

Choose a reason for hiding this comment

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

LGTM.
literally, consumer span is the local root span, should be translated to xray Segment instead of Subsegment.

@github-actions
Copy link
Contributor

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

@wangzlei
Copy link
Contributor

@TylerHelmuth Please help merge the PR, thanks!

@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2025

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Oct 3, 2025
@mx-psi mx-psi merged commit c9ce64b into open-telemetry:main Oct 6, 2025
203 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 6, 2025
@otelbot
Copy link
Contributor

otelbot bot commented Oct 6, 2025

Thank you for your contribution @ezhang6811! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey.

graphaelli pushed a commit to graphaelli/opentelemetry-collector-contrib that referenced this pull request Oct 6, 2025
…#42633)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Set `namespace="remote"` for producer spans so that X-ray will infer a
downstream service node. Changed consumer spans to be segments so that
they can correlate to their own node while being downstream from the
producer.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
open-telemetry#40995

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Added unit tests for producer span and updated unit tests for consumer
spans.


<!--Please delete paragraphs that you did not use before submitting.-->
thpierce pushed a commit to thpierce/opentelemetry-collector-contrib that referenced this pull request Oct 6, 2025
…#42633)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Set `namespace="remote"` for producer spans so that X-ray will infer a
downstream service node. Changed consumer spans to be segments so that
they can correlate to their own node while being downstream from the
producer.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
open-telemetry#40995

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Added unit tests for producer span and updated unit tests for consumer
spans.


<!--Please delete paragraphs that you did not use before submitting.-->
sky333999 pushed a commit to amazon-contributing/opentelemetry-collector-contrib that referenced this pull request Oct 6, 2025
mashhurs pushed a commit to mashhurs/opentelemetry-collector-contrib that referenced this pull request Oct 9, 2025
…#42633)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Set `namespace="remote"` for producer spans so that X-ray will infer a
downstream service node. Changed consumer spans to be segments so that
they can correlate to their own node while being downstream from the
producer.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
open-telemetry#40995

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Added unit tests for producer span and updated unit tests for consumer
spans.


<!--Please delete paragraphs that you did not use before submitting.-->
tommyers-elastic pushed a commit to tommyers-elastic/opentelemetry-collector-contrib that referenced this pull request Oct 10, 2025
…#42633)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Set `namespace="remote"` for producer spans so that X-ray will infer a
downstream service node. Changed consumer spans to be segments so that
they can correlate to their own node while being downstream from the
producer.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
open-telemetry#40995

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Added unit tests for producer span and updated unit tests for consumer
spans.


<!--Please delete paragraphs that you did not use before submitting.-->
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.

exporter/awsxray does not set namespace remote for producer spans

4 participants