Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Tags
- type Tag = (Text, TagVal)
- data TagVal
- setTag :: Tag -> Tags -> Tags
- getTag :: Text -> Tags -> Maybe TagVal
- getTagReify :: Getting (First b) Tag b -> Text -> Tags -> Maybe b
- pattern ComponentKey :: forall a. (Eq a, IsString a) => a
- pattern DbInstanceKey :: forall a. (Eq a, IsString a) => a
- pattern DbStatementKey :: forall a. (Eq a, IsString a) => a
- pattern DbTypeKey :: forall a. (Eq a, IsString a) => a
- pattern DbUserKey :: forall a. (Eq a, IsString a) => a
- pattern ErrorKey :: forall a. (Eq a, IsString a) => a
- pattern HttpMethodKey :: forall a. (Eq a, IsString a) => a
- pattern HttpStatusCodeKey :: forall a. (Eq a, IsString a) => a
- pattern HttpUrlKey :: forall a. (Eq a, IsString a) => a
- pattern MessageBusDestinationKey :: forall a. (Eq a, IsString a) => a
- pattern PeerAddressKey :: forall a. (Eq a, IsString a) => a
- pattern PeerHostnameKey :: forall a. (Eq a, IsString a) => a
- pattern PeerIPv4Key :: forall a. (Eq a, IsString a) => a
- pattern PeerIPv6Key :: forall a. (Eq a, IsString a) => a
- pattern PeerPortKey :: forall a. (Eq a, IsString a) => a
- pattern PeerServiceKey :: forall a. (Eq a, IsString a) => a
- pattern SamplingPriorityKey :: forall a. (Eq a, IsString a) => a
- pattern SpanKindKey :: forall a. (Eq a, IsString a) => a
- pattern Component :: Text -> Tag
- pattern DbInstance :: Text -> Tag
- pattern DbStatement :: Text -> Tag
- pattern DbType :: Text -> Tag
- pattern DbUser :: Text -> Tag
- pattern Error :: Bool -> Tag
- pattern HttpMethod :: Method -> Tag
- pattern HttpStatusCode :: Status -> Tag
- pattern HttpUrl :: Text -> Tag
- pattern MessageBusDestination :: Text -> Tag
- pattern PeerAddress :: Text -> Tag
- pattern PeerHostname :: Text -> Tag
- pattern PeerIPv4 :: IPv4 -> Tag
- pattern PeerIPv6 :: IPv6 -> Tag
- pattern PeerPort :: Port -> Tag
- pattern PeerService :: Text -> Tag
- pattern SamplingPriority :: Word8 -> Tag
- pattern SpanKind :: SpanKinds -> Tag
- _Component :: Prism' Tag Text
- _DbInstance :: Prism' Tag Text
- _DbStatement :: Prism' Tag Text
- _DbType :: Prism' Tag Text
- _DbUser :: Prism' Tag Text
- _Error :: Prism' Tag Bool
- _HttpMethod :: Prism' Tag Method
- _HttpStatusCode :: Prism' Tag Status
- _HttpUrl :: Prism' Tag Text
- _MessageBusDestination :: Prism' Tag Text
- _PeerAddress :: Prism' Tag Text
- _PeerHostname :: Prism' Tag Text
- _PeerIPv4 :: Prism' Tag IPv4
- _PeerIPv6 :: Prism' Tag IPv6
- _PeerPort :: Prism' Tag Port
- _PeerService :: Prism' Tag Text
- _SamplingPriority :: Prism' Tag Word8
- _SpanKind :: Prism' Tag SpanKinds
- data SpanKinds
- spanKindLabel :: SpanKinds -> Text
Documentation
Tags are structured data associated with a Span
. They can give
a more complete picture of what a Span is doing than the operation alone. Tags
apply to the entire timerange of a Span. Use LogField
for
events that refer to particular timestamp.
getTagReify :: Getting (First b) Tag b -> Text -> Tags -> Maybe b Source #
Get a tag and attempt to convert it from a serialized format
Standard span tags.
Refer to the OpenTracing spec for more info.
pattern ComponentKey :: forall a. (Eq a, IsString a) => a Source #
pattern DbInstanceKey :: forall a. (Eq a, IsString a) => a Source #
pattern DbStatementKey :: forall a. (Eq a, IsString a) => a Source #
pattern HttpMethodKey :: forall a. (Eq a, IsString a) => a Source #
pattern HttpStatusCodeKey :: forall a. (Eq a, IsString a) => a Source #
pattern HttpUrlKey :: forall a. (Eq a, IsString a) => a Source #
pattern MessageBusDestinationKey :: forall a. (Eq a, IsString a) => a Source #
pattern PeerAddressKey :: forall a. (Eq a, IsString a) => a Source #
pattern PeerHostnameKey :: forall a. (Eq a, IsString a) => a Source #
pattern PeerIPv4Key :: forall a. (Eq a, IsString a) => a Source #
pattern PeerIPv6Key :: forall a. (Eq a, IsString a) => a Source #
pattern PeerPortKey :: forall a. (Eq a, IsString a) => a Source #
pattern PeerServiceKey :: forall a. (Eq a, IsString a) => a Source #
pattern SamplingPriorityKey :: forall a. (Eq a, IsString a) => a Source #
pattern SpanKindKey :: forall a. (Eq a, IsString a) => a Source #
pattern DbInstance :: Text -> Tag Source #
pattern DbStatement :: Text -> Tag Source #
pattern HttpMethod :: Method -> Tag Source #
pattern HttpStatusCode :: Status -> Tag Source #
pattern MessageBusDestination :: Text -> Tag Source #
pattern PeerAddress :: Text -> Tag Source #
pattern PeerHostname :: Text -> Tag Source #
pattern PeerService :: Text -> Tag Source #
pattern SamplingPriority :: Word8 -> Tag Source #
spanKindLabel :: SpanKinds -> Text Source #