From 827637c23d7bcf10d22950af64a0be385b8c00e3 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 1 May 2025 21:40:47 +0200 Subject: [PATCH] chore: set commits on sentry release also lower trace sample rate --- frontend/src/ts/sentry.ts | 2 +- frontend/vite.config.prod.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/sentry.ts b/frontend/src/ts/sentry.ts index a9624491c..0d51d6cbe 100644 --- a/frontend/src/ts/sentry.ts +++ b/frontend/src/ts/sentry.ts @@ -25,7 +25,7 @@ export function init(): void { }), ], // Tracing - tracesSampleRate: 1.0, // Capture 100% of the transactions + tracesSampleRate: 0.25, // Capture 100% of the transactions // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled tracePropagationTargets: ["localhost", /^https:\/\/api\.monkeytype\.com/], // Session Replay diff --git a/frontend/vite.config.prod.js b/frontend/vite.config.prod.js index 24720aef9..8531a75ce 100644 --- a/frontend/vite.config.prod.js +++ b/frontend/vite.config.prod.js @@ -148,6 +148,10 @@ export default { project: "frontend", release: { name: buildClientVersion(), + setCommits: { + commit: "HEAD", + previousCommit: "HEAD^", + }, }, applicationKey: "monkeytype-frontend", })