effect-io-ai

Package: effect
Module: Effect

Effect.tagMetricsScoped

Tags metrics within a scope with a specific key-value pair.

Details

This function tags all metrics within a scope with the provided key-value pair. Once the scope is closed, the tag is automatically removed. This is useful for applying temporary context-specific tags to metrics during scoped operations.

Signature

declare const tagMetricsScoped: (key: string, value: string) => Effect<void, never, Scope.Scope>

Source

Since v2.0.0