MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / add

Function add

source code/entrypoints/init.ts:323–331  ·  view source on GitHub ↗
(value: number, additionalAttributes: Attributes = {})

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getTelemetryAttributesFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected