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
contrib/labstack/echo.v4: add option to ignore errors #1567
Conversation
83b2e52
to
f12ec40
Compare
@gbbr sorry, I'm just tagging a random internal member. do you think I can get any review of this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello! Would you please file an issue describing your precise use case so we know what problem you're running into?
Based on your issue, we'd like to hear whether or not #865 could meet your needs.
Hi thanks for replying! primarily for me this is to control the status code going in error-tagged spans, but I think it's also useful in other areas such as controlling what types of custom errors should/shouldn't be tagged. also there doesn't seem to be much progress on that issue, I'd like this to be handled separately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrkagelui thanks for your PR! the feature looks good, just some minor nits to keep the option consistent with other contribs.
ok, will rebase and address these soon (in one or two day) |
f680b57
to
585c43f
Compare
done @rarguelloF |
585c43f
to
92848e8
Compare
By the way, if it's not for consistency reasons, I'd rather name it |
Be great if we can have some review/approval before it gets outdated again 😀 @rarguelloF |
thanks for running and let me look into the failed tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrkagelui thanks for addressing the comments from last review, it's looking good!
I found a small issue that I missed in the last review, please take a look at my comment and let me know what you think!
By the way, if it's not for consistency reasons, I'd rather name it ignoreError, because it's clearer what the return of function means (ignore if true), errCheck is very ambiguous.
I agree the name is probably improvable 😅 but in this case we prefer to give a consistent experience to the library users. Let's just make sure the public docs make it clear what the behaviour is (as you already did 🙂 ).
For the sake of moving forward with the PR, I went ahead and I added the changes discussed in here: #1567 (comment) It will be merged as soon as its reviewed and approved by someone from @DataDog/tracing-go Thanks so much for your contribution and for your patience! |
What does this PR do?
add option to ignore errors in tracing for echo framework
Motivation
I want to control which error should be tagged in spans and which should not
Describe how to test/QA your changes
unit tests should be able to cover this change
Reviewer's Checklist
Triage
milestone is set.