Skip to content

MetricEvent

Standalone metric event for observe.metrics() middleware. Used when @opentelemetry/api is not installed.

attributes: Record<string, string>

Attribute key-value pairs.


name: string

Metric name (e.g., “agent_express_model_calls_total”).


type: "counter" | "histogram"

Metric type.


value: number

Value (increment for counter, observation for histogram).