Liking cljdoc? Tell your friends :D

clj-bugsnag.core


exception->jsonclj

(exception->json exception
                 {:keys [project-ns context group severity user version
                         environment meta]
                  :as options})
source

get-git-revclj

(get-git-rev)
source

get-hostnameclj

(get-hostname)

Attempt to get the current hostname.

Attempt to get the current hostname.
sourceraw docstring

git-revclj

source

notifyclj

(notify exception)
(notify exception {:keys [suppress-bugsnag-response?] :as options})

Notify Bugsnag about the supplied exception. By default, this function returns the HTTP response from Bugsnag. A second, optional argument may be passed to configure the behavior of the client. This map supports the following options.

  • :api-key - The BugSnag API key for your project. If this key is missing, the library will attempt to load the Environment variable BUGSNAG_KEY and the JVM Property bugsnagKey in this order. If all three values are nil, an exception will be thrown
  • :project-ns - The BugSnag project name you'd like to report the error to. Typically the artifact name. Defaults to �
  • :context - The BugSnag 'context' in which an error occurred. Defaults to nil. See https://docs.bugsnag.com/platforms/java/other/customizing-error-reports/ for more details
  • :group - The BugSnag 'group' an error occurred within. Defaults to the exception message for instances of clojure.lang.ExceptionInfo or the Class Name of the Exception
  • :severity - The severity of the error. Must be one of info, warning, and error. Defaults to error
  • :user - A string or map of facets representing the active end user when the error occurred. Defaults to nil
  • :version - The application version running when the error was reported. Defaults to the git SHA when possible. Otherwise nil.
  • :environment - The deployment context in which the error occurred. Defaults to Production
  • :meta - A map of arbitrary metadata to associate to the error
  • :suppress-bugsnag-response? - A boolean toggle for this function's return value. When truthy, return nil- consistent with other logging interfaces and println When falsy, return the clj-http response from calling BugSnag's API Defaults to falsy.
Notify Bugsnag about the supplied `exception`.
By default, this function returns the HTTP response from Bugsnag.
A second, optional argument may be passed to configure the behavior of the client.
This map supports the following options.
  - :api-key - The BugSnag API key for your project.
               If this key is missing, the library will attempt to load the Environment variable `BUGSNAG_KEY` and the JVM Property `bugsnagKey` in this order.
               If all three values are nil, an exception will be thrown
  - :project-ns - The BugSnag project name you'd like to report the error to.
                  Typically the artifact name.
                  Defaults to 
  - :context - The BugSnag 'context' in which an error occurred.
               Defaults to nil.
               See https://docs.bugsnag.com/platforms/java/other/customizing-error-reports/ for more details
  - :group - The BugSnag 'group' an error occurred within.
             Defaults to the exception message for instances of `clojure.lang.ExceptionInfo` or the Class Name of the Exception
  - :severity - The severity of the error.
                Must be one of `info`, `warning`, and `error`.
                Defaults to `error`
  - :user  - A string or map of facets representing the active end user when the error occurred.
             Defaults to nil
  - :version - The application version running when the error was reported.
               Defaults to the git SHA when possible.
               Otherwise nil.
  - :environment - The deployment context in which the error occurred.
                   Defaults to `Production`
  - :meta - A map of arbitrary metadata to associate to the error
  - :suppress-bugsnag-response? - A boolean toggle for this function's return value.
                                  When truthy, return nil- consistent with other logging interfaces and `println`
                                  When falsy, return the clj-http response from calling BugSnag's API
                                  Defaults to falsy.
sourceraw docstring

notify-v2!clj

(notify-v2! exception)
(notify-v2! exception options)

Notify BugSnag about the supplied exception. By default, this function returns nil. A second, optional argument may be passed to configure the behavior of the client, which deviates in behavior from notify This map supports the following options.

  • :api-key - The BugSnag API key for your project. If this key is missing, the library will attempt to load the Environment variable BUGSNAG_KEY and the JVM Property bugsnagKey in this order. If all three values are nil, an exception will be thrown
  • :project-ns - The BugSnag project name you'd like to report the error to. Typically the artifact name. Defaults to �
  • :context - The BugSnag 'context' in which an error occurred. Defaults to nil. See https://docs.bugsnag.com/platforms/java/other/customizing-error-reports/ for more details
  • :group - The BugSnag 'group' an error occurred within. Defaults to the exception message for instances of clojure.lang.ExceptionInfo or the Class Name of the Exception
  • :severity - The severity of the error. Must be one of info, warning, and error. Defaults to error
  • :user - A string or map of facets representing the active end user when the error occurred. Defaults to nil
  • :version - The application version running when the error was reported. Defaults to the git SHA when possible. Otherwise nil.
  • :environment - The deployment context in which the error occurred. Defaults to Production
  • :meta - A map of arbitrary metadata to associate to the error
Notify BugSnag about the supplied `exception`.
By default, this function returns nil.
A second, optional argument may be passed to configure the behavior of the client, which deviates in behavior from `notify`
This map supports the following options.
  - :api-key - The BugSnag API key for your project.
               If this key is missing, the library will attempt to load the Environment variable `BUGSNAG_KEY` and the JVM Property `bugsnagKey` in this order.
               If all three values are nil, an exception will be thrown
  - :project-ns - The BugSnag project name you'd like to report the error to.
                  Typically the artifact name.
                  Defaults to 
  - :context - The BugSnag 'context' in which an error occurred.
               Defaults to nil.
               See https://docs.bugsnag.com/platforms/java/other/customizing-error-reports/ for more details
  - :group - The BugSnag 'group' an error occurred within.
             Defaults to the exception message for instances of `clojure.lang.ExceptionInfo` or the Class Name of the Exception
  - :severity - The severity of the error.
                Must be one of `info`, `warning`, and `error`.
                Defaults to `error`
  - :user  - A string or map of facets representing the active end user when the error occurred.
             Defaults to nil
  - :version - The application version running when the error was reported.
               Defaults to the git SHA when possible.
               Otherwise nil.
  - :environment - The deployment context in which the error occurred.
                   Defaults to `Production`
  - :meta - A map of arbitrary metadata to associate to the error
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close