MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / add

Function add

src/entrypoints/init.ts:373–381  ·  view source on GitHub ↗
(value: number, additionalAttributes: Attributes = {})

Source from the content-addressed store, hash-verified

371
372 return {
373 add(value: number, additionalAttributes: Attributes = {}) {
374 // Always fetch fresh telemetry attributes to ensure they're up to date
375 const currentAttributes = getTelemetryAttributes()
376 const mergedAttributes = {
377 ...currentAttributes,
378 ...additionalAttributes,
379 }
380 counter?.add(value, mergedAttributes)
381 },
382 }
383 }
384

Callers

nothing calls this directly

Calls 2

getTelemetryAttributesFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected