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

Function record

testing/e2e/src/routes/api.middleware-test.ts:271–278  ·  view source on GitHub ↗
(value: number, attributes?: Attributes)

Source from the content-addressed store, hash-verified

269function createCaptureMeter(captureId: string): Meter {
270 const histogram = (name: string, options?: MetricOptions): Histogram => ({
271 record(value: number, attributes?: Attributes) {
272 recordOtelHistogram(captureId, {
273 name,
274 value,
275 attributes,
276 unit: options?.unit,
277 })
278 },
279 })
280 return {
281 createHistogram: histogram,

Callers

nothing calls this directly

Calls 1

recordOtelHistogramFunction · 0.90

Tested by

no test coverage detected