MCPcopy Index your code
hub / github.com/simstudioai/sim / buildDimensions

Function buildDimensions

apps/sim/lib/monitoring/metrics.ts:86–92  ·  view source on GitHub ↗
(labels: Record<string, string | undefined>)

Source from the content-addressed store, hash-verified

84}
85
86function buildDimensions(labels: Record<string, string | undefined>) {
87 const dimensions = [{ Name: 'Environment', Value: ENVIRONMENT }]
88 for (const [Name, Value] of Object.entries(labels)) {
89 if (Value) dimensions.push({ Name, Value })
90 }
91 return dimensions
92}
93
94function enqueue(
95 MetricName: string,

Callers 1

enqueueFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected