MCPcopy Index your code
hub / github.com/simstudioai/sim / createFallbackSpanContext

Function createFallbackSpanContext

apps/sim/lib/copilot/request/otel.ts:334–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

332}
333
334function createFallbackSpanContext(): SpanContext {
335 return {
336 traceId: randomBytes(16).toString('hex'),
337 spanId: randomBytes(8).toString('hex'),
338 traceFlags: TraceFlags.SAMPLED,
339 }
340}
341
342interface CopilotOtelScope {
343 // Leave unset on the chat POST — startCopilotOtelRoot will derive

Callers 2

startCopilotOtelRootFunction · 0.85
withCopilotOtelContextFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected