instana-haskell-trace-sdk-0.6.0.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

  • spanAndTraceId :: Id

    The trace ID and span ID (those are identical for root spans)

  • spanName :: Text

    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.

  • timestamp :: Int

    The time the span (and trace) started

  • errorCount :: Int

    The number of errors that occured during processing

  • serviceName :: Maybe Text

    An attribute for overriding the name of the service in Instana

  • correlationType :: Maybe Text

    The website monitoring correlation type

  • correlationId :: Maybe Text

    The website monitoring correlation ID

  • spanData :: Value

    Additional data for the span. Must be provided as an Value.

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.

addData :: Value -> RootEntry -> RootEntry Source #

Add a value to the span's data section.

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.