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

Clean up code and return UUID from rollbar response #10

Merged
merged 3 commits into from
Dec 6, 2023
Merged

Conversation

OwenGraves
Copy link
Contributor

This simplifies the code by combining the shared logic across functions into a new reportErrorSWithOptions that optionally returns a rollbar uuid to help better identify errors. There is further cleanup that could be done but this seemed like a decent place to stop. This is a mildly breaking change (I aligned the arguments to the functions so they match) but largely tries to keep compatibility.

This simplifies the code by combining the shared logic across functions
into a new `reportErrorSWithOptions` that optionally returns a rollbar
uuid to help better identify errors. There is further cleanup that could
be done but this seemed like a decent place to stop. This is a mildly
breaking change (I aligned the arguments to the functions so they match)
but largely tries to keep compatibility.
src/Rollbar.hs Outdated
, "notifier"
.= Aeson.object
[ "name" .= ("rollbar-haskell" :: T.Text)
, "version" .= ("1.1.3" :: T.Text)
Copy link
Contributor

Choose a reason for hiding this comment

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

might wanna change this now that we're touching all lines

@OwenGraves OwenGraves merged commit a17a4f2 into master Dec 6, 2023
1 check passed
@ysangkok ysangkok deleted the add-uuid branch December 8, 2023 16:53
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.

2 participants