(overrides: Partial<ErrorEvent> = {})
| 184 | // correlation — so its claim suppresses the echo and nothing else. |
| 185 | describe("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(); |
no outgoing calls
no test coverage detected