MCPcopy Create free account
hub / github.com/Effect-TS/effect / attributesToString

Function attributesToString

packages/effect/src/Metric.ts:3126–3130  ·  view source on GitHub ↗
(attributes: Metric.AttributeSet)

Source from the content-addressed store, hash-verified

3124 Array.from(keyValues).map(([key, value]) => `(${key} -> ${value})`).join(", ")
3125
3126const attributesToString = (attributes: Metric.AttributeSet): string => {
3127 const attrs = Object.entries(attributes)
3128 const sorted = Arr.sortWith(attrs, (attr) => attr[0], _String.Order)
3129 return `attributes=[${sorted.map(([key, value]) => `${key}: ${value}`).join(", ")}]`
3130}
3131
3132// Metric Boundaries
3133

Callers 2

Metric.tsFile · 0.85
renderAttributesFunction · 0.85

Calls 2

joinMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected