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

Function doEcho

apps/cloud/src/observability/observability.test.ts:186–199  ·  view source on GitHub ↗
(overrides: Partial<ErrorEvent> = {})

Source from the content-addressed store, hash-verified

184// correlation — so its claim suppresses the echo and nothing else.
185describe("Durable Object capture ownership", () => {
186 const doEcho = (overrides: Partial<ErrorEvent> = {}): ErrorEvent => ({
187 type: undefined,
188 tags: { [DO_CAUSE_OWNER_TAG]: DO_CAUSE_OWNER_VALUE },
189 exception: {
190 values: [
191 {
192 type: "Error",
193 value: "Durable Object reset because its code was updated.",
194 mechanism: { type: "auto.faas.cloudflare.durable_object", handled: false },
195 },
196 ],
197 },
198 ...overrides,
199 });
200
201 it("drops the auto-instrumentation's copy of a cause the DO already claimed", () => {
202 expect(beforeSendWithOtelCorrelation(doEcho())).toBeNull();

Callers 2

ownReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected