Skip to content

Commit

Permalink
fix default attrs on sentry config
Browse files Browse the repository at this point in the history
  • Loading branch information
mping-exo committed Mar 21, 2024
1 parent 340d808 commit ac49656
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/spootnik/reporter/sentry.clj
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,10 @@
Additional options can be found here:
https://github.com/getsentry/sentry-clj/tree/master?tab=readme-ov-file#additional-initialisation-options
"
[{:keys [dsn enable-external-configuration] :or {enable-external-configuration true} :as sentry}]
[{:keys [dsn] :as sentry}]
(if-not (in-memory? dsn)
(sentry/init! dsn sentry)
(let [defaults {:enable-external-configuration true}]
(sentry/init! dsn (merge defaults sentry)))
(reset! http-requests-payload-stub [])))

(defn close! [{:keys [dsn]}]
Expand Down

0 comments on commit ac49656

Please sign in to comment.