Safe Haskell | None |
---|---|
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 :: (Eq a, IsString a) => a
- pattern DbInstanceKey :: (Eq a, IsString a) => a
- pattern DbStatementKey :: (Eq a, IsString a) => a
- pattern DbTypeKey :: (Eq a, IsString a) => a
- pattern DbUserKey :: (Eq a, IsString a) => a
- pattern ErrorKey :: (Eq a, IsString a) => a
- pattern HttpMethodKey :: (Eq a, IsString a) => a
- pattern HttpStatusCodeKey :: (Eq a, IsString a) => a
- pattern HttpUrlKey :: (Eq a, IsString a) => a
- pattern MessageBusDestinationKey :: (Eq a, IsString a) => a
- pattern PeerAddressKey :: (Eq a, IsString a) => a
- pattern PeerHostnameKey :: (Eq a, IsString a) => a
- pattern PeerIPv4Key :: (Eq a, IsString a) => a
- pattern PeerIPv6Key :: (Eq a, IsString a) => a
- pattern PeerPortKey :: (Eq a, IsString a) => a
- pattern PeerServiceKey :: (Eq a, IsString a) => a
- pattern SamplingPriorityKey :: (Eq a, IsString a) => a
- pattern SpanKindKey :: (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 :: (Eq a, IsString a) => a Source #
pattern DbInstanceKey :: (Eq a, IsString a) => a Source #
pattern DbStatementKey :: (Eq a, IsString a) => a Source #
pattern HttpMethodKey :: (Eq a, IsString a) => a Source #
pattern HttpStatusCodeKey :: (Eq a, IsString a) => a Source #
pattern HttpUrlKey :: (Eq a, IsString a) => a Source #
pattern MessageBusDestinationKey :: (Eq a, IsString a) => a Source #
pattern PeerAddressKey :: (Eq a, IsString a) => a Source #
pattern PeerHostnameKey :: (Eq a, IsString a) => a Source #
pattern PeerIPv4Key :: (Eq a, IsString a) => a Source #
pattern PeerIPv6Key :: (Eq a, IsString a) => a Source #
pattern PeerPortKey :: (Eq a, IsString a) => a Source #
pattern PeerServiceKey :: (Eq a, IsString a) => a Source #
pattern SamplingPriorityKey :: (Eq a, IsString a) => a Source #
pattern SpanKindKey :: (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 #