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

Function cloudSentryOptions

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

Source from the content-addressed store, hash-verified

228 * `captureCause` seam (→ Sentry) instead.
229 */
230export const cloudSentryOptions = (env: Env) => ({
231 dsn: env.SENTRY_DSN,
232 tracesSampleRate: 0,
233 enableLogs: true,
234 sendDefaultPii: true,
235 skipOpenTelemetrySetup: true,
236 beforeSend: (event: ErrorEvent) =>
237 beforeSendCloudEvent(event, {
238 logPayload: !env.SENTRY_DSN || env.SENTRY_OTEL_LOG_PAYLOAD === "true",
239 }),
240});
241
242export const addCurrentOtelCorrelationTags = <
243 T extends { readonly tags?: Record<string, unknown> },

Callers 1

Calls 1

beforeSendCloudEventFunction · 0.85

Tested by

no test coverage detected