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

Function add

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

Source from the content-addressed store, hash-verified

319
320 return {
321 add(value: number, additionalAttributes: Attributes = {}) {
322 // Always fetch fresh telemetry attributes to ensure they're up to date
323 const currentAttributes = getTelemetryAttributes()
324 const mergedAttributes = {
325 ...currentAttributes,
326 ...additionalAttributes,
327 }
328 counter?.add(value, mergedAttributes)
329 },
330 }
331 }
332

Callers

nothing calls this directly

Calls 2

getTelemetryAttributesFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected