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

Function timerWithBoundaries

packages/effect/src/internal/metric.ts:357–371  ·  view source on GitHub ↗
(
  name: string,
  boundaries: ReadonlyArray<number>,
  description?: string
)

Source from the content-addressed store, hash-verified

355
356/** @internal */
357export const timerWithBoundaries = (
358 name: string,
359 boundaries: ReadonlyArray<number>,
360 description?: string
361): Metric.Metric<
362 MetricKeyType.MetricKeyType.Histogram,
363 Duration.Duration,
364 MetricState.MetricState.Histogram
365> => {
366 const base = pipe(
367 histogram(name, metricBoundaries.fromIterable(boundaries), description),
368 tagged("time_unit", "milliseconds")
369 )
370 return mapInput(base, Duration.toMillis)
371}
372
373/* @internal */
374export const trackAll = dual<

Callers

nothing calls this directly

Calls 3

pipeFunction · 0.70
histogramFunction · 0.70
taggedFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…