mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
chore: disable sentry->posthog integration
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user