opentracing-0.3.0: OpenTracing for Haskell
Safe HaskellSafe-Inferred
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
ToJSON Tags Source # 
Instance details

Defined in OpenTracing.Tags

Monoid Tags Source # 
Instance details

Defined in OpenTracing.Tags

Methods

mempty :: Tags #

mappend :: Tags -> Tags -> Tags #

mconcat :: [Tags] -> Tags #

Semigroup Tags Source # 
Instance details

Defined in OpenTracing.Tags

Methods

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

sconcat :: NonEmpty Tags -> Tags #

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

Show Tags Source # 
Instance details

Defined in OpenTracing.Tags

Methods

showsPrec :: Int -> Tags -> ShowS #

show :: Tags -> String #

showList :: [Tags] -> ShowS #

Eq Tags Source # 
Instance details

Defined in OpenTracing.Tags

Methods

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

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

type Tag = (Text, TagVal) Source #

A Tag is a key:value pair

data TagVal Source #

Instances

Instances details
ToJSON TagVal Source # 
Instance details

Defined in OpenTracing.Tags

Show TagVal Source # 
Instance details

Defined in OpenTracing.Tags

Eq TagVal Source # 
Instance details

Defined in OpenTracing.Tags

Methods

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

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

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

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

pattern ErrorKey :: 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 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 #