Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Span
- data SpanKind
- addRegisteredData :: Value -> Span -> Span
- addRegisteredDataAt :: ToJSON a => Text -> a -> Span -> Span
- addTag :: Value -> Span -> Span
- addTagAt :: ToJSON a => Text -> a -> Span -> Span
- addToErrorCount :: Int -> Span -> Span
- correlationId :: Span -> Maybe Text
- correlationType :: Span -> Maybe Text
- errorCount :: Span -> Int
- parentId :: Span -> Maybe Id
- serviceName :: Span -> Maybe Text
- setCorrelationId :: Text -> Span -> Span
- setCorrelationType :: Text -> Span -> Span
- setServiceName :: Text -> Span -> Span
- spanData :: Span -> Value
- spanId :: Span -> Id
- spanKind :: Span -> SpanKind
- spanName :: Span -> Text
- timestamp :: Span -> Int
- traceId :: Span -> Id
Documentation
A span.
Instances
Eq Span Source # | |
Show Span Source # | |
Generic Span Source # | |
type Rep Span Source # | |
Defined in Instana.SDK.Span.Span type Rep Span = D1 ('MetaData "Span" "Instana.SDK.Span.Span" "instana-haskell-trace-sdk-0.6.0.0-inplace" 'False) (C1 ('MetaCons "Entry" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EntrySpan)) :+: C1 ('MetaCons "Exit" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ExitSpan))) |
The span kind (entry, exit or intermediate).
EntryKind | The monitored componenent receives a call. |
ExitKind | The monitored componenent calls something else. |
IntermediateKind | An additional annotation that is added to the trace while a traced call is being processed. |
Instances
Eq SpanKind Source # | |
Show SpanKind Source # | |
Generic SpanKind Source # | |
type Rep SpanKind Source # | |
Defined in Instana.SDK.Span.Span type Rep SpanKind = D1 ('MetaData "SpanKind" "Instana.SDK.Span.Span" "instana-haskell-trace-sdk-0.6.0.0-inplace" 'False) (C1 ('MetaCons "EntryKind" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ExitKind" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IntermediateKind" 'PrefixI 'False) (U1 :: Type -> Type))) |
addRegisteredData :: Value -> Span -> Span Source #
Add a value to the span's data section. This should only be used for registered spans, not for SDK spans. For SDK spans, you should use addTag instead.
addRegisteredDataAt :: ToJSON a => Text -> a -> Span -> Span Source #
Add a value at the given path to the span's data section. For SDK spans, you should use addTagAt instead.
addTag :: Value -> Span -> Span Source #
Add a value to the span's custom tags section. This should be used for SDK spans instead of addRegisteredData.
addTagAt :: ToJSON a => Text -> a -> Span -> Span Source #
Add a value to the given path to the span's custom tags section. This should be used for SDK spans instead of addRegisteredDataAt.
errorCount :: Span -> Int Source #
Error count.
serviceName :: Span -> Maybe Text Source #
An optional attribute for overriding the name of the service in Instana.
setCorrelationId :: Text -> Span -> Span Source #
Set the website monitoring correlation ID. This should only be set on root entry spans. It will be silently ignored for other types of spans.
setCorrelationType :: Text -> Span -> Span Source #
Set the website monitoring correlation type. This should only be set on root entry spans. It will be silently ignored for other types of spans.