@genex-ai/embed-sdk 0.11.0 → 0.12.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/dist/sentry.js +9 -9
  2. package/package.json +1 -1
package/dist/sentry.js CHANGED
@@ -41,15 +41,15 @@ function initGameSentry(opts) {
41
41
  Sentry.init({
42
42
  dsn: opts.dsn ?? DEFAULT_GAMES_DSN,
43
43
  environment: opts.environment ?? "production",
44
- // Mobile-readiness program (2026-07-21): touch devices get throttled
45
- // telemetry — this REVERSES the 2026-07-02 record-every-session decision
46
- // for the touch device class only, because 100% replay + canvas readback
47
- // burns memory/GPU on the phones the crash program is trying to save.
48
- // Desktop keeps full rates; on-error replays stay 100% everywhere, so the
49
- // crash-debugging case keeps its data.
50
- tracesSampleRate: touchSession ? 0.2 : 1,
51
- replaysSessionSampleRate: touchSession ? 0.1 : 1,
52
- replaysOnErrorSampleRate: 1,
44
+ // Rates are sized to the org quota, which every project shares: 5M spans and
45
+ // 50 replays per month. The previous desktop 1.0/1.0 exhausted both in July
46
+ // 2026, after which Sentry drops everything. Touch stays lower than desktop
47
+ // for the 2026-07-21 mobile-readiness reason (replay + canvas readback burns
48
+ // phone memory), and session replay is off outright — 50/month only stretches
49
+ // to errored sessions.
50
+ tracesSampleRate: touchSession ? 0.05 : 0.1,
51
+ replaysSessionSampleRate: 0,
52
+ replaysOnErrorSampleRate: 0.01,
53
53
  dataCollection: { userInfo: true },
54
54
  initialScope: { tags: { game_slug: opts.slug } },
55
55
  integrations: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genex-ai/embed-sdk",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Player identity + durable game state for genex games \u2014 signed-in or guest play, per-player save slots, shared world state, and soft-trust leaderboards.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",