Skip to content

Fix OpenTracing error tag handling#1159

Merged
felixbarny merged 2 commits intoelastic:masterfrom
mkavanagh:opentracing-error-tag
Apr 28, 2020
Merged

Fix OpenTracing error tag handling#1159
felixbarny merged 2 commits intoelastic:masterfrom
mkavanagh:opentracing-error-tag

Conversation

@mkavanagh
Copy link
Contributor

What does this PR do?

Updates the OpenTracing bridge to propagate span.setTag("error", true) to the transaction result correctly.

At present, the boolean comparison is inverted so that span.setTag("error", false) will propagate to an error result (but true will not).

Checklist

- [ ] I have made corresponding changes to the documentation

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated CHANGELOG.asciidoc
    - [ ] I have updated supported-technologies.asciidoc
    - [ ] Added an API method or config option? Document in which version this will be introduced
    - [ ] Added an instrumentation plugin? How did you make sure that old, non-supported versions are not instrumented by accident?
@cla-checker-service
Copy link

cla-checker-service bot commented Apr 27, 2020

💚 CLA has been signed

@felixbarny
Copy link
Member

Thx for the fix, after signing the CLA, we're good to go 👍

@mkavanagh
Copy link
Contributor Author

Cool - I've signed it, let me know if it's not right somehow

@felixbarny
Copy link
Member

Looks good. Could you update the changelog?

@felixbarny felixbarny merged commit b45bf3e into elastic:master Apr 28, 2020
@felixbarny
Copy link
Member

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants