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

Function renderKeyValues

packages/effect/src/Metric.ts:3123–3124  ·  view source on GitHub ↗
(keyValues: Iterable<[number | string, string | number]>)

Source from the content-addressed store, hash-verified

3121}
3122
3123const renderKeyValues = (keyValues: Iterable<[number | string, string | number]>): string =>
3124 Array.from(keyValues).map(([key, value]) => `(${key} -> ${value})`).join(", ")
3125
3126const attributesToString = (attributes: Metric.AttributeSet): string => {
3127 const attrs = Object.entries(attributes)

Callers 1

renderStateFunction · 0.85

Calls 2

joinMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected