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

Honor Transaction.Outcome set by public API in auto instrumentation #1472

Merged
merged 2 commits into from
Sep 8, 2021
Merged

Honor Transaction.Outcome set by public API in auto instrumentation #1472

merged 2 commits into from
Sep 8, 2021

Conversation

gregkalapos
Copy link
Contributor

Solves #1349

When Transaction.Outcome is set within an incoming web request prior to this PR we ignored it and set it based on HTTP (or gRPC) return code. The intention was already in the original code that if the user set the outcome for a transaction (even if it's started by auto instrumentation) we honor that and don't change it.

This PR adapts this behaviour, specifically: when Transaction.Outcome is set manually through the public API, the agent will take that value and won't change it based on HTTP or gRPC status code.

@apmmachine
Copy link
Contributor

apmmachine commented Aug 18, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-09-08T18:48:19.035+0000

  • Duration: 60 min 15 sec

  • Commit: cb84b69

Test stats 🧪

Test Results
Failed 0
Passed 19715
Skipped 126
Total 19841

Trends 🧪

Image of Build Times

Image of Tests

@gregkalapos gregkalapos added the bug Something isn't working label Aug 18, 2021
@gregkalapos gregkalapos merged commit 9f43064 into elastic:master Sep 8, 2021
@gregkalapos gregkalapos deleted the ManualApiOutcome branch September 8, 2021 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-dotnet bug Something isn't working v1.11.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants