MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getCommonAttributes

Function getCommonAttributes

packages/core/src/telemetry/metrics.ts:46–50  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

44let isMetricsInitialized = false;
45
46function getCommonAttributes(config: Config): Attributes {
47 return {
48 'session.id': config.getSessionId(),
49 };
50}
51
52export function getMeter(): Meter | undefined {
53 if (!cliMeter) {

Callers 7

initializeMetricsFunction · 0.70
recordToolCallMetricsFunction · 0.70
recordTokenUsageMetricsFunction · 0.70
recordApiResponseMetricsFunction · 0.70
recordApiErrorMetricsFunction · 0.70

Calls 1

getSessionIdMethod · 0.80

Tested by

no test coverage detected