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

Instana.SDK.Span.NonRootEntry

Description

 
Synopsis

Documentation

data NonRootEntry Source #

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

Constructors

NonRootEntry 

Fields

  • traceId :: Id

    The trace ID

  • spanId :: Id

    The span ID

  • parentId :: Id

    The ID of the parent span

  • spanType :: SpanType

    The type of the span (SDK span or registerd span)

  • timestamp :: Int

    The time the span 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

  • synthetic :: Bool

    A flag indicating that this span represents a synthetic call

  • spanData :: SpanData

    Additional data for the span.

  • w3cTraceContext :: Maybe W3CTraceContext

    The W3C Trace Context. An entry span only has an associated W3C trace context, if W3C trace context headers have been received.

  • tpFlag :: Bool

    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.

Instances

Instances details
Eq NonRootEntry Source # 
Instance details

Defined in Instana.SDK.Span.NonRootEntry

Show NonRootEntry Source # 
Instance details

Defined in Instana.SDK.Span.NonRootEntry

Generic NonRootEntry Source # 
Instance details

Defined in Instana.SDK.Span.NonRootEntry

Associated Types

type Rep NonRootEntry :: Type -> Type #

type Rep NonRootEntry Source # 
Instance details

Defined in Instana.SDK.Span.NonRootEntry

addAnnotation :: Annotation -> NonRootEntry -> NonRootEntry 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 -> NonRootEntry -> NonRootEntry Source #

Add to the error count.

setServiceName :: Text -> NonRootEntry -> NonRootEntry Source #

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

setSynthetic :: Bool -> NonRootEntry -> NonRootEntry Source #

Set the synthetic flag.

setTpFlag :: NonRootEntry -> NonRootEntry 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.

setW3cTraceContext :: W3CTraceContext -> NonRootEntry -> NonRootEntry Source #

Attaches a W3C trace context to the span.

spanName :: NonRootEntry -> 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.