instana-haskell-trace-sdk-0.10.2.0: SDK for adding custom Instana tracing support to Haskell applications.
Safe HaskellNone
LanguageHaskell2010

Instana.SDK.Span.RootEntry

Description

 
Synopsis

Documentation

data RootEntry Source #

An entry span that is the root span of a trace.

Constructors

RootEntry 

Fields

Instances

Instances details
Eq RootEntry Source # 
Instance details

Defined in Instana.SDK.Span.RootEntry

Show RootEntry Source # 
Instance details

Defined in Instana.SDK.Span.RootEntry

Generic RootEntry Source # 
Instance details

Defined in Instana.SDK.Span.RootEntry

Associated Types

type Rep RootEntry :: Type -> Type #

type Rep RootEntry Source # 
Instance details

Defined in Instana.SDK.Span.RootEntry

spanId :: RootEntry -> Id Source #

Accessor for the span ID.

traceId :: RootEntry -> Id Source #

Accessor for the trace ID.

addAnnotation :: Annotation -> RootEntry -> RootEntry Source #

Add an annotation to the span's data section. For SDK spans, the annotation is added to span.data.sdk.custom.tags, for registered spans it is added directly to span.data.

addToErrorCount :: Int -> RootEntry -> RootEntry Source #

Add to the error count.

setServiceName :: Text -> RootEntry -> RootEntry Source #

Override the name of the service for the associated call in Instana.

setCorrelationType :: Text -> RootEntry -> RootEntry Source #

Set the website monitoring correlation type.

setCorrelationId :: Text -> RootEntry -> RootEntry Source #

Set the website monitoring correlation ID.

setSynthetic :: Bool -> RootEntry -> RootEntry Source #

Set the synthetic flag.

setW3cTraceContext :: W3CTraceContext -> RootEntry -> RootEntry Source #

Attaches a W3C trace context to the span.

spanName :: RootEntry -> Text Source #

The span name/type, e.g. a short string like "haskell.wai.server", "haskell.http.client". For SDK spans this is always "sdk", the actual name is then in span.data.sdk.name.