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

Function mergeAttributes

packages/effect/src/Metric.ts:3502–3507  ·  view source on GitHub ↗
(
  self: Metric.Attributes | undefined,
  other: Metric.Attributes | undefined
)

Source from the content-addressed store, hash-verified

3500}
3501
3502function mergeAttributes(
3503 self: Metric.Attributes | undefined,
3504 other: Metric.Attributes | undefined
3505): Metric.AttributeSet {
3506 return { ...attributesToRecord(self), ...attributesToRecord(other) }
3507}
3508
3509function attributesToRecord(attributes?: Metric.Attributes): Metric.AttributeSet | undefined {
3510 if (Predicate.isNotUndefined(attributes) && Array.isArray(attributes)) {

Callers 3

hookFunction · 0.85
timerFunction · 0.85
addAttributesToContextFunction · 0.85

Calls 1

attributesToRecordFunction · 0.85

Tested by

no test coverage detected