opentracing-0.1.0.0: OpenTracing for Haskell
Safe HaskellNone
LanguageHaskell2010

OpenTracing.Tags

Synopsis

Documentation

data Tags Source #

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.

Instances

Instances details
Eq Tags Source # 
Instance details

Defined in OpenTracing.Tags

Methods

(==) :: Tags -> Tags -> Bool #

(/=) :: Tags -> Tags -> Bool #

Show Tags Source # 
Instance details

Defined in OpenTracing.Tags

Methods

showsPrec :: Int -> Tags -> ShowS #

show :: Tags -> String #

showList :: [Tags] -> ShowS #

Semigroup Tags Source # 
Instance details

Defined in OpenTracing.Tags

Methods

(<>) :: Tags -> Tags -> Tags #

sconcat :: NonEmpty Tags -> Tags #

stimes :: Integral b => b -> Tags -> Tags #

Monoid Tags Source # 
Instance details

Defined in OpenTracing.Tags

Methods

mempty :: Tags #

mappend :: Tags -> Tags -> Tags #

mconcat :: [Tags] -> Tags #

ToJSON Tags Source # 
Instance details

Defined in OpenTracing.Tags

type Tag = (Text, TagVal) Source #

A Tag is a key:value pair

data TagVal Source #

Instances

Instances details
Eq TagVal Source # 
Instance details

Defined in OpenTracing.Tags

Methods

(==) :: TagVal -> TagVal -> Bool #

(/=) :: TagVal -> TagVal -> Bool #

Show TagVal Source # 
Instance details

Defined in OpenTracing.Tags

ToJSON TagVal Source # 
Instance details

Defined in OpenTracing.Tags

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 DbTypeKey :: (Eq a, IsString a) => a Source #

pattern DbUserKey :: (Eq a, IsString a) => a Source #

pattern ErrorKey :: (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 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 Component :: Text -> Tag Source #

pattern DbInstance :: Text -> Tag Source #

pattern DbStatement :: Text -> Tag Source #

pattern DbType :: Text -> Tag Source #

pattern DbUser :: Text -> Tag Source #

pattern Error :: Bool -> Tag Source #

pattern HttpMethod :: Method -> Tag Source #

pattern HttpUrl :: Text -> Tag Source #

pattern PeerAddress :: Text -> Tag Source #

pattern PeerHostname :: Text -> Tag Source #

pattern PeerIPv4 :: IPv4 -> Tag Source #

pattern PeerIPv6 :: IPv6 -> Tag Source #

pattern PeerPort :: Port -> Tag Source #

pattern PeerService :: Text -> Tag Source #

pattern SpanKind :: SpanKinds -> Tag Source #