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

Function constructor

packages/effect/src/Metric.ts:1662–1670  ·  view source on GitHub ↗
(
    id: string,
    description: string | undefined,
    attributes: Metric.AttributeSet | undefined
  )

Source from the content-addressed store, hash-verified

1660 readonly attributes: Metric.AttributeSet | undefined
1661
1662 constructor(
1663 id: string,
1664 description: string | undefined,
1665 attributes: Metric.AttributeSet | undefined
1666 ) {
1667 this.id = id
1668 this.description = description
1669 this.attributes = attributes
1670 }
1671
1672 valueUnsafe(context: Context.Context<never>): State {
1673 return this.hook(context).get(context)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected