forked from logseq/logseq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
180 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,20 @@ | |
(:require [frontend.version :refer [version]] | ||
[frontend.util :as util] | ||
[frontend.config :as cfg] | ||
["@sentry/browser" :as Sentry] | ||
["@sentry/electron" :as Sentry-electron] | ||
["@sentry/react" :as Sentry] | ||
["@sentry/tracing" :refer [BrowserTracing]] | ||
["posthog-js" :as posthog])) | ||
|
||
(def config | ||
{:dsn "https://[email protected]/5311485" | ||
:release (util/format "logseq@%s" version) | ||
:environment (if cfg/dev? "development" "production") | ||
:integrations [(new posthog/SentryIntegration posthog "logseq" 5311485)] | ||
:platform (if (util/electron?) "electron" "web") | ||
:integrations [(new posthog/SentryIntegration posthog "logseq" 5311485) | ||
(new BrowserTracing)] | ||
:debug cfg/dev? | ||
:tracesSampleRate 1.0}) | ||
|
||
(defn init [] | ||
(let [config (clj->js config) | ||
init-fn (if (util/electron?) Sentry-electron/init Sentry/init)] | ||
(init-fn config))) | ||
(let [config (clj->js config)] | ||
(Sentry/init config))) |
Oops, something went wrong.