Skip to content
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

[exporter/awsxray] Fix X-Ray Segment status code #24381

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

mxiamxia
Copy link
Member

@mxiamxia mxiamxia commented Jul 19, 2023

Description:
The conversion from HTTP spans to X-Ray segments did not accurately capture the HTTP status code during the translation of the cause. As a result, some failed HTTP requests with 4xx and 5xx status codes were displayed as having an "OK" status in the X-Ray console. Also, add remote attribute in Exception for X-Ray remote segments.

Link to tracking Issue:
N/A

Testing:
unit test
Documentation:
N/A

@github-actions github-actions bot requested review from srprash and wangzlei July 19, 2023 03:59
@mxiamxia mxiamxia force-pushed the fix-xray-segment-status branch from b4f3641 to 0225315 Compare July 19, 2023 04:00
@mxiamxia mxiamxia marked this pull request as ready for review July 19, 2023 04:00
@mxiamxia mxiamxia requested review from a team and dashpole July 19, 2023 04:00
@mxiamxia mxiamxia force-pushed the fix-xray-segment-status branch 2 times, most recently from c5672d7 to 5dae054 Compare July 19, 2023 04:12
@mxiamxia mxiamxia force-pushed the fix-xray-segment-status branch 2 times, most recently from df7890f to c4c3f4a Compare July 19, 2023 22:26
@bjrara
Copy link
Contributor

bjrara commented Jul 19, 2023

LGTM

@mxiamxia
Copy link
Member Author

Hi @dashpole, could you please take a look this PR when you get a chance

Copy link
Contributor

@srprash srprash left a comment

Choose a reason for hiding this comment

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

LGTM with some nits.

.chloggen/fix-xray-segment-status-attributes.yaml Outdated Show resolved Hide resolved
exporter/awsxrayexporter/internal/translator/cause.go Outdated Show resolved Hide resolved
@mxiamxia mxiamxia force-pushed the fix-xray-segment-status branch from c4c3f4a to aaf5c58 Compare July 19, 2023 23:53
@mxiamxia mxiamxia force-pushed the fix-xray-segment-status branch from aaf5c58 to f0cff2f Compare July 20, 2023 04:11
@mxiamxia mxiamxia force-pushed the fix-xray-segment-status branch from bec1c24 to 21e9a64 Compare July 21, 2023 20:32
mxiamxia added a commit to amazon-contributing/opentelemetry-collector-contrib that referenced this pull request Jul 21, 2023
@mxiamxia
Copy link
Member Author

Hi @dashpole , kindly follow if you could help to take a look this PR. Ty!

@mxiamxia
Copy link
Member Author

Hi can I get some help from @open-telemetry/collector-contrib-approvers to review this PR?

@jpkrohling jpkrohling changed the title Fix X-Ray Segment status code [exporter/awsxray] Fix X-Ray Segment status code Aug 2, 2023
@jpkrohling jpkrohling merged commit d35fd1d into open-telemetry:main Aug 2, 2023
@github-actions github-actions bot added this to the next release milestone Aug 2, 2023
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.

7 participants