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

Function bucketFor

testing/e2e/src/lib/otel-capture.ts:45–52  ·  view source on GitHub ↗
(captureId: string)

Source from the content-addressed store, hash-verified

43const captures: Map<string, OtelCapture> = new Map()
44
45function bucketFor(captureId: string): OtelCapture {
46 let bucket = captures.get(captureId)
47 if (!bucket) {
48 bucket = { spans: [], histograms: [] }
49 captures.set(captureId, bucket)
50 }
51 return bucket
52}
53
54export function resetOtelCapture(captureId: string): void {
55 captures.set(captureId, { spans: [], histograms: [] })

Callers 5

getOtelCaptureFunction · 0.70
recordOtelSpanFunction · 0.70
recordOtelEventFunction · 0.70
recordOtelExceptionFunction · 0.70
recordOtelHistogramFunction · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected