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

Function beforeSendCloudEvent

apps/cloud/src/observability/index.ts:201–207  ·  view source on GitHub ↗
(
  event: ErrorEvent,
  options?: { readonly logPayload?: boolean },
)

Source from the content-addressed store, hash-verified

199 * grouped.
200 */
201export const beforeSendCloudEvent = (
202 event: ErrorEvent,
203 options?: { readonly logPayload?: boolean },
204): ErrorEvent | null => {
205 const reported = beforeSendWithOtelCorrelation(event, options);
206 return reported === null ? null : withStableGroupingFingerprint(minimizeSentryEvent(reported));
207};
208
209/**
210 * The Sentry options the worker and every Durable Object install. It lives

Callers 2

cloudSentryOptionsFunction · 0.85

Calls 3

minimizeSentryEventFunction · 0.90

Tested by

no test coverage detected