MCPcopy Create free account
hub / github.com/freecodexyz/free-code / executeInSpan

Function executeInSpan

src/utils/telemetry/sessionTracing.ts:122–128  ·  view source on GitHub ↗
(
  _spanName: string,
  fn: (span: Span) => Promise<T>,
  _attributes?: SpanMetadata,
)

Source from the content-addressed store, hash-verified

120}
121
122export async function executeInSpan<T>(
123 _spanName: string,
124 fn: (span: Span) => Promise<T>,
125 _attributes?: SpanMetadata,
126): Promise<T> {
127 return fn(createNoopSpan())
128}
129
130export function startHookSpan(
131 _hookEvent: string,

Callers

nothing calls this directly

Calls 1

createNoopSpanFunction · 0.85

Tested by

no test coverage detected