update: trace only api calls

This commit is contained in:
Tony Yang
2025-04-17 01:25:48 +08:00
parent c3df80671a
commit ceda1e8c1c
2 changed files with 2 additions and 1 deletions
@@ -2,7 +2,7 @@ import * as Sentry from "@sentry/cloudflare";
export const onRequest = [ export const onRequest = [
Sentry.sentryPagesPlugin((context) => ({ Sentry.sentryPagesPlugin((context) => ({
dsn: "https://9d2c460f5e6bca67a47fa821860dceef@o4506857623453696.ingest.us.sentry.io/4509163928944640", dsn: context.env.SENTRY_DSN,
// Set tracesSampleRate to 1.0 to capture 100% of spans for tracing. // Set tracesSampleRate to 1.0 to capture 100% of spans for tracing.
// Learn more at // Learn more at
// https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate
+1
View File
@@ -10,6 +10,7 @@ turnstile_site_key = "0x4AAAAAABL64iQLO7IcpeAL"
turnstile_secret_key = "0x4AAAAAABL64iEN4VrGqNbSF9AvtUiDgr0" turnstile_secret_key = "0x4AAAAAABL64iEN4VrGqNbSF9AvtUiDgr0"
recaptcha_site_key = "6LdTSxkrAAAAAOWt1LWFd9HYt8IRXyT0PaJXouC3" recaptcha_site_key = "6LdTSxkrAAAAAOWt1LWFd9HYt8IRXyT0PaJXouC3"
recaptcha_secret_key = "6LdTSxkrAAAAAJSaQNfWeediIrFTITejA9cRqiCR" recaptcha_secret_key = "6LdTSxkrAAAAAJSaQNfWeediIrFTITejA9cRqiCR"
SENTRY_DSN = "https://9d2c460f5e6bca67a47fa821860dceef@o4506857623453696.ingest.us.sentry.io/4509163928944640"
[[d1_databases]] [[d1_databases]]
binding = "DB" binding = "DB"