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

contrib/gofiber/fiber.v2: capture error from fiber handler #988

Merged
merged 2 commits into from Aug 30, 2021

Conversation

dubonzi
Copy link
Contributor

@dubonzi dubonzi commented Aug 21, 2021

The error returned from the fiber handler was being ignored by the middleware. It now correctly captures the error and
sets it on the span by default, falling back to the previous behavior if no error is present.

Fixes #978

The error returned from the fiber handler was being ignored
by the middleware. It now correctly captures the error and
sets it on the span.

Fixes DataDog#978
@knusbaum knusbaum added this to the 1.34.0 milestone Aug 26, 2021
Copy link
Contributor

@knusbaum knusbaum left a comment

Choose a reason for hiding this comment

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

Thanks, @dubonzi.
The change is straight-forward and the test looks good.

@dubonzi
Copy link
Contributor Author

dubonzi commented Aug 26, 2021

Thanks @knusbaum!

@knusbaum knusbaum merged commit 04e1521 into DataDog:v1 Aug 30, 2021
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.

proposal: contrib/gofiber/fiber.v2: improve error handling
2 participants