Skip to content
Effect Days 2026 Get your ticket

MetricLabel

5 exports Added in v2.0.0 Source

Constructors

make

Added in v2.0.0 Source

Signature

declare const make: (key: string, value: string) => MetricLabel

Models

MetricLabel interface

Added in v2.0.0 Source

A MetricLabel represents a key value pair that allows analyzing metrics at an additional level of granularity.

For example if a metric tracks the response time of a service labels could be used to create separate versions that track response times for different clients.

Signature

interface MetricLabel extends Equal, Pipeable {
readonly [MetricLabelTypeId]: typeof MetricLabelTypeId;
readonly key: string;
readonly value: string;
}

Refinements

Signature

declare const isMetricLabel: (u: unknown) => u is MetricLabel

Symbols

Signature

declare const MetricLabelTypeId: unique symbol

MetricLabelTypeId type

Added in v2.0.0 Source

Signature

type MetricLabelTypeId = typeof MetricLabelTypeId