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

X-Ray Receiver validates exception fields #11431

Merged

Conversation

NathanielRN
Copy link
Contributor

Description: When converting span exceptions into X-Ray segments, it is possible that the span is missing a message. This PR protects against Null Pointer Exceptions by using a default "" string if either of these values are missing.

Link to tracking Issue: #11064

Testing: Added a simple unit test to verify the fix.

Documentation: No documentation is needed. This is a small bug fix.

Fixes: #11064

@NathanielRN NathanielRN requested review from a team and codeboten June 21, 2022 23:15
@NathanielRN NathanielRN force-pushed the check-for-null-exception-fields branch from a81801b to b14f0a1 Compare June 21, 2022 23:26
@NathanielRN NathanielRN force-pushed the check-for-null-exception-fields branch from b14f0a1 to 3dbe604 Compare June 21, 2022 23:27
@djaglowski djaglowski merged commit d7cf4a4 into open-telemetry:main Jun 22, 2022
@NathanielRN NathanielRN deleted the check-for-null-exception-fields branch June 22, 2022 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[awsxrayreceiver] SIGSEGV when translating java.lang.NullPointerException
4 participants