Skip to content

Commit

Permalink
enable external config
Browse files Browse the repository at this point in the history
  • Loading branch information
mping-exo committed Mar 21, 2024
1 parent 058fcc4 commit 340d808
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/spootnik/reporter/sentry.clj
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,13 @@

(defn init!
"
Initializes sentry. By default, external configuration is enabled.
Environment variables to options are documented here: https://docs.sentry.io/platforms/java/configuration/
Additional options can be found here:
https://github.com/getsentry/sentry-clj/tree/master?tab=readme-ov-file#additional-initialisation-options
"
[{:keys [dsn] :as sentry}]
[{:keys [dsn enable-external-configuration] :or {enable-external-configuration true} :as sentry}]
(if-not (in-memory? dsn)
(sentry/init! dsn sentry)
(reset! http-requests-payload-stub [])))
Expand Down

0 comments on commit 340d808

Please sign in to comment.