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

Instana.SDK.Span.ExitSpan

Description

 
Synopsis

Documentation

data ExitSpan Source #

An exit span.

Constructors

ExitSpan 

Fields

  • parentSpan :: EntrySpan

    The parent span

  • spanId :: Id

    The span ID

  • spanType :: SpanType

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

  • timestamp :: Int

    The time the span started

  • serviceName :: Maybe Text

    An attribute for overriding the name of the service in Instana

  • errorCount :: Int

    The number of errors that occured during processing

  • spanData :: SpanData

    Additional data for the span.

  • w3cTraceContext :: W3CTraceContext

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

Instances

Instances details
Eq ExitSpan Source # 
Instance details

Defined in Instana.SDK.Span.ExitSpan

Show ExitSpan Source # 
Instance details

Defined in Instana.SDK.Span.ExitSpan

Generic ExitSpan Source # 
Instance details

Defined in Instana.SDK.Span.ExitSpan

Associated Types

type Rep ExitSpan :: Type -> Type #

Methods

from :: ExitSpan -> Rep ExitSpan x #

to :: Rep ExitSpan x -> ExitSpan #

type Rep ExitSpan Source # 
Instance details

Defined in Instana.SDK.Span.ExitSpan

parentId :: ExitSpan -> Id Source #

Parent span ID.

traceId :: ExitSpan -> Id Source #

Accessor for the trace ID.

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

Add to the error count.

setServiceName :: Text -> ExitSpan -> ExitSpan Source #

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

setW3cTraceContext :: W3CTraceContext -> ExitSpan -> ExitSpan Source #

Attaches a W3C trace context to the span.

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