chore: disable sentry->posthog integration

This commit is contained in:
Tienson Qin
2022-11-24 13:51:32 +08:00
parent e900a205e7
commit dc32bdc2df
2 changed files with 5 additions and 6 deletions

View File

@@ -884,9 +884,9 @@
(catch :default error
(let [type :handle-system-events/failed]
(js/console.error (str type) (clj->js payload) "\n" error)
(state/pub-event! [:instrument {:type type
:payload payload
:error error}])))))
(state/pub-event! [:capture-error {:error error
:payload {:type type
:payload payload}}])))))
(recur))
chan))

View File

@@ -4,7 +4,6 @@
[frontend.config :as config]
["@sentry/react" :as Sentry]
["@sentry/tracing" :refer [BrowserTracing]]
["posthog-js" :as posthog]
[frontend.mobile.util :as mobile-util]))
(def config
@@ -21,8 +20,8 @@
(mobile-util/native-platform?) "mobile"
:else "web")
:publishing config/publishing?}}
:integrations [(new posthog/SentryIntegration posthog "logseq" 5311485)
(new BrowserTracing)]
;; :integrations [(new posthog/SentryIntegration posthog "logseq" 5311485)
;; (new BrowserTracing)]
:debug config/dev?
:tracesSampleRate 1.0
:beforeSend (fn [^js event]