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

Function addAttributesToContext

packages/effect/src/Metric.ts:3519–3526  ·  view source on GitHub ↗
(
  context: Context.Context<never>,
  attributes: Metric.Attributes
)

Source from the content-addressed store, hash-verified

3517}
3518
3519function addAttributesToContext(
3520 context: Context.Context<never>,
3521 attributes: Metric.Attributes
3522): Context.Context<never> {
3523 const current = Context.get(context, CurrentMetricAttributes)
3524 const updated = mergeAttributes(current, attributes)
3525 return Context.add(context, CurrentMetricAttributes, updated)
3526}

Callers 1

Metric.tsFile · 0.85

Calls 3

mergeAttributesFunction · 0.85
getMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected