MCPcopy Create free account
hub / github.com/effect-app/libs / wrapWithSpan

Function wrapWithSpan

packages/vue/src/makeClient.ts:399–403  ·  view source on GitHub ↗
(self: { id: string }, mut: any)

Source from the content-addressed store, hash-verified

397const _useMutation = makeMutation(atomQueryInvalidator)
398
399const wrapWithSpan = (self: { id: string }, mut: any) => {
400 const span = (eff: Effect.Effect<any, any, any>) =>
401 Effect.withSpan(`mutation ${self.id}`, {}, { captureStackTrace: false })(eff)
402 return (input: any, options?: MutationOptionsBase) => span(mut(input, options))
403}
404
405/**
406 * Pass an Effect or a function that returns an Effect, e.g from a client action

Callers 2

makeClient.tsFile · 0.70
useMutationIntFunction · 0.70

Calls 1

spanFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…