| Copyright | (c) Ian Duncan 2026 |
|---|---|
| License | BSD-3 |
| Stability | experimental |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
OpenTelemetry.Metric.InstrumentName
Description
The SDK validates instrument names and units at creation time. The API itself does not validate (per spec), but these functions are used by the SDK to reject invalid names before registering instruments.
Spec: https://opentelemetry.io/docs/specs/otel/metrics/api/#instrument-name-syntax
Synopsis
- validateInstrumentName :: Text -> Maybe Text
- validateInstrumentUnit :: Text -> Maybe Text