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

  • 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 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

  • spanData :: Value

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

addData :: Value -> NonRootEntry -> NonRootEntry Source #

Add a value to the span's data section.

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.