MCPcopy Create free account
hub / github.com/TanStack/ai / recordOtelEvent

Function recordOtelEvent

testing/e2e/src/lib/otel-capture.ts:88–96  ·  view source on GitHub ↗
(
  captureId: string,
  spanId: string,
  event: CapturedEvent,
)

Source from the content-addressed store, hash-verified

86}
87
88export function recordOtelEvent(
89 captureId: string,
90 spanId: string,
91 event: CapturedEvent,
92): void {
93 const existing = bucketFor(captureId).spans.find((s) => s.id === spanId)
94 if (!existing) return
95 existing.events.push(event)
96}
97
98export function recordOtelException(
99 captureId: string,

Callers 1

addEventFunction · 0.90

Calls 2

bucketForFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected