فهرست منبع

Fix sentry platform not showing up on issues (#4631)

* Fix sentry platform not showing up as tag

Also added mobile to platform and added publishing as another tag
to allow for more search indices

* Address feedback - mobile platform should be native
Gabriel Horner 3 سال پیش
والد
کامیت
6afb0fcdf2
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      src/main/frontend/modules/instrumentation/sentry.cljs

+ 6 - 1
src/main/frontend/modules/instrumentation/sentry.cljs

@@ -15,7 +15,12 @@
                                          :else "")
                          version)
    :environment (if cfg/dev? "development" "production")
-   :platform (if (util/electron?) "electron" "web")
+   :initialScope {:tags
+                  {:platform (cond
+                               (util/electron?) "electron"
+                               (mobile-util/is-native-platform?) "mobile"
+                               :else "web")
+                   :publishing cfg/publishing?}}
    :integrations [(new posthog/SentryIntegration posthog "logseq" 5311485)
                   (new BrowserTracing)]
    :debug cfg/dev?