-
Notifications
You must be signed in to change notification settings - Fork 17
Add an option for notify-environments #4
base: master
Are you sure you want to change the base?
Conversation
@andreiursan Would love to get some feedback on this PR when you have a chance! |
@@ -54,6 +54,9 @@ | |||
thing | |||
(str thing))) | |||
|
|||
(defn- environment [options] | |||
(or (:environment options) "production")) |
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.
this was like this before, but better code style would be to use
(:key map "defualt")
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.
Agreed! I totally missed that, thanks. I'll update the commit with that fix
Thanks for working on this.
If we just extend the post to have this additional field, then the implementation with |
@andreiursan maybe I'm misreading their documentation, but notifyReleaseStages is under the section:
As in, they like if client libraries implement this functionality. Looking at the JSON payload, they don't support a parameter called (As a bit of sidenote, I called it notify-environments instead of notify-release-stages because currently in the options the Please let me know what you think or if I'm missing something in your idea, thanks! |
Allows notifying bugsnag in only certain environments. Helpful for avoiding exception reporting in development environment for example. Parallels the semantics in other bugsnag libraries, such as the JS library that has a "notifyReleaseStages"
12980b4
to
98597a6
Compare
Allows notifying bugsnag in only certain environments. Helpful for
avoiding exception reporting in development environment for example.
Parallels the semantics in other bugsnag libraries, such as the JS
library that has a "notifyReleaseStages"
Does this seem like a reasonable feature for the Clojure library to implement? It parallels the functionality of the JS and Java bugsnag libraries. At the moment we can wrap up the notifier function in a should-notify in our own projects, but across a lot of projects it becomes a little tedious.