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

[receiver/awsxrayreceiver] Bugfix - Add defaults for optional stack frame parameters #8790

Merged
merged 4 commits into from
Mar 23, 2022

Conversation

srprash
Copy link
Contributor

@srprash srprash commented Mar 22, 2022

Description:
This PR fixes the issue where the receiver would panic while parsing the stackframe if any of the optional parameters are missing. Now before accessing these optional parameter values, they are checked and defaulted to "" if they are nil.
Added a small utility function for this check.

Link to tracking Issue:
#8271

Testing:
Added new unit tests where the optional parameters were omitted. Also added unit tests for the utility function.

Documentation:
NA

@srprash srprash requested a review from a team March 22, 2022 20:49
@srprash srprash requested a review from anuraaga as a code owner March 22, 2022 20:49
@srprash srprash changed the title [receiver/awsxrayreceiver] defaults for optional stack frame parameters [receiver/awsxrayreceiver] Bugfix - Add defaults for optional stack frame parameters Mar 22, 2022
srprash and others added 2 commits March 23, 2022 10:35
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
@srprash srprash closed this Mar 23, 2022
@srprash srprash reopened this Mar 23, 2022
@codeboten codeboten merged commit a748f6e into open-telemetry:main Mar 23, 2022
@srprash srprash deleted the fix_stackframe_translation branch March 23, 2022 21:20
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.

4 participants