@rpcbase/client 0.264.0 → 0.265.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/instrument.ts +7 -1
  2. package/package.json +1 -1
package/instrument.ts CHANGED
@@ -4,9 +4,15 @@ import posthog from "posthog-js"
4
4
  const isProduction = import.meta.env.MODE === "production"
5
5
 
6
6
  if (isProduction) {
7
- console.log("Initializing Sentry with dsn:", import.meta.env.RB_PUBLIC_SENTRY_DSN)
7
+ if (!import.meta.env.RB_PUBLIC_SENTRY_DSN) {
8
+ console.warn("missing RB_PUBLIC_SENTRY_DSN")
9
+ }
10
+ if (!import.meta.env.RB_PUBLIC_SENTRY_RELEASE) {
11
+ console.warn("missing RB_PUBLIC_SENTRY_RELEASE, using 'unknown' as release version")
12
+ }
8
13
  Sentry.init({
9
14
  dsn: import.meta.env.RB_PUBLIC_SENTRY_DSN,
15
+ release: import.meta.env.RB_PUBLIC_SENTRY_RELEASE || "unknown",
10
16
  sendDefaultPii: true,
11
17
  tracesSampleRate: 1.0,
12
18
  debug: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/client",
3
- "version": "0.264.0",
3
+ "version": "0.265.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "scripts": {