MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / cloudSentryOptions

Function cloudSentryOptions

apps/cloud/src/observability/index.ts:221–231  ·  view source on GitHub ↗
(env: Env)

Source from the content-addressed store, hash-verified

219 * `captureCause` seam (→ Sentry) instead.
220 */
221export const cloudSentryOptions = (env: Env) => ({
222 dsn: env.SENTRY_DSN,
223 tracesSampleRate: 0,
224 enableLogs: false,
225 sendDefaultPii: false,
226 skipOpenTelemetrySetup: true,
227 beforeSend: (event: ErrorEvent) =>
228 beforeSendCloudEvent(event, {
229 logPayload: !env.SENTRY_DSN || env.SENTRY_OTEL_LOG_PAYLOAD === "true",
230 }),
231});
232
233export const addCurrentOtelCorrelationTags = <
234 T extends { readonly tags?: Record<string, unknown> },

Callers 1

Calls 1

beforeSendCloudEventFunction · 0.85

Tested by

no test coverage detected