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
- setSynthetic :: Bool -> Span -> Span
- setW3cTraceContext :: W3CTraceContext -> Span -> Span
- spanData :: Span -> Value
- setTpFlag :: Span -> Span
- spanId :: Span -> Id
- spanKind :: Span -> SpanKind
- spanName :: Span -> Text
- synthetic :: Span -> Bool
- timestamp :: Span -> Int
- tpFlag :: Span -> Bool
- traceId :: Span -> Id
- w3cTraceContext :: Span -> Maybe W3CTraceContext
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.7.1.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.7.1.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.
setServiceName :: Text -> Span -> Span Source #
Override the name of the service for the associated call in Instana.
setSynthetic :: Bool -> Span -> Span Source #
Set the synthetic flag. This should only be set on entry spans. It will be silently ignored for other types of spans.
setW3cTraceContext :: W3CTraceContext -> Span -> Span Source #
Attaches a W3C trace context to the span.
setTpFlag :: Span -> Span Source #
Set the span.tp flag. A span with span.tp = True has inherited the trace ID/ parent ID from W3C trace context instead of Instana headers. Only valid for non-root entry spans, will be silently ignored for root entry spans and exit spans.
tpFlag :: Span -> Bool Source #
The span.tp flag. A span with span.tp = True has inherited the trace ID/ parent ID from W3C trace context instead of Instana headers. Only valid for non-root entry spans.
w3cTraceContext :: Span -> Maybe W3CTraceContext Source #
The W3C Trace Context. An entry span only has an associated W3C trace context, if W3C trace context headers have been received. In contrast, exit spans always have an associated W3C trace context.