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

Method constructor

packages/effect/src/Metric.ts:1822–1829  ·  view source on GitHub ↗
(id: string, options: {
    readonly description?: string | undefined
    readonly attributes?: Metric.Attributes | undefined
    readonly boundaries: ReadonlyArray<number>
  })

Source from the content-addressed store, hash-verified

1820 readonly #boundaries: ReadonlyArray<number>
1821
1822 constructor(id: string, options: {
1823 readonly description?: string | undefined
1824 readonly attributes?: Metric.Attributes | undefined
1825 readonly boundaries: ReadonlyArray<number>
1826 }) {
1827 super(id, options?.description, attributesToRecord(options?.attributes))
1828 this.#boundaries = options.boundaries
1829 }
1830
1831 createHooks(): Metric.Hooks<number, HistogramState> {
1832 const bounds = this.#boundaries

Callers

nothing calls this directly

Calls 1

attributesToRecordFunction · 0.85

Tested by

no test coverage detected