| Copyright | (c) Ian Duncan 2021 |
|---|---|
| License | BSD-3 |
| Maintainer | Ian Duncan |
| Stability | experimental |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
OpenTelemetry.Attributes.Key
Description
Synopsis
- newtype AttributeKey a = AttributeKey {}
- forget :: AttributeKey a -> AttributeKey Attribute
Documentation
newtype AttributeKey a Source #
A AttributeKey is a name for an attribute. The type parameter sets the type of the
attribute the key should be associated with. This is useful for standardising
attribute keys, since we can define both the key and the type of value it is
intended to record.
For example, we might define:
-- See https://opentelemetry.io/docs/specs/semconv/attributes-registry/server/ serverPortKey :: AttributeKey Int serverPortKey = "server.port"
Constructors
| AttributeKey | |
Instances
forget :: AttributeKey a -> AttributeKey Attribute Source #