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

feat: Added guid attribute to TransactionError events #2079

Merged

Conversation

svetlanabrennan
Copy link
Contributor

@svetlanabrennan svetlanabrennan commented Mar 18, 2024

Description

Our agents needs to add guid to TransactionError events. This is the final step needed in order for Errors Inbox team to link TransactionError events and ErrorTrace events when errors happen within a transaction.

How to Test

Added unit tests. Also ran a sample errors app and verified in the query builder that there is a guid on TransactionError events when distributed tracing is enabled or disabled.

Distributed tracing enabled - error trace:

dt-on-error-trace

Distributed tracing enabled - transaction error:

dt-on-transaction-error

Distributed tracing disabled - error trace:

dt-off-error-trace

Distributed tracing disabled - transaction error:

dt-off-transaction-error

Related Issues

Relates to this pr #1954
Closes #2076

Verified

This commit was signed with the committer’s verified signature.
bizob2828 Bob Evans
Copy link

codecov bot commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.18%. Comparing base (66f94b0) to head (11e8ad7).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2079      +/-   ##
==========================================
- Coverage   97.18%   97.18%   -0.01%     
==========================================
  Files         248      248              
  Lines       41938    41937       -1     
==========================================
- Hits        40756    40755       -1     
  Misses       1182     1182              
Flag Coverage Δ
integration-tests-16.x 78.25% <100.00%> (+0.01%) ⬆️
integration-tests-18.x 78.22% <100.00%> (-0.01%) ⬇️
integration-tests-20.x 78.22% <100.00%> (-0.01%) ⬇️
unit-tests-16.x 90.49% <100.00%> (-0.01%) ⬇️
unit-tests-18.x 90.47% <100.00%> (-0.01%) ⬇️
unit-tests-20.x 90.47% <100.00%> (-0.01%) ⬇️
versioned-tests-16.x 74.49% <100.00%> (-0.02%) ⬇️
versioned-tests-18.x 75.60% <100.00%> (-0.03%) ⬇️
versioned-tests-20.x 75.61% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@svetlanabrennan svetlanabrennan changed the title WIP: Add guid to transaction error and update unit tests feat: Added guid to TransactionError events Mar 18, 2024
@svetlanabrennan svetlanabrennan changed the title feat: Added guid to TransactionError events feat: Added guid attribute to TransactionError events Mar 18, 2024
@svetlanabrennan svetlanabrennan marked this pull request as ready for review March 18, 2024 16:58
Copy link
Contributor

@jsumners-nr jsumners-nr left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@svetlanabrennan svetlanabrennan merged commit 3468fb1 into newrelic:main Mar 19, 2024
25 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add guid to TransactionError
2 participants