MCPcopy Create free account
hub / github.com/Noumena-Network/code / add

Function add

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getTelemetryAttributesFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected