instana-haskell-trace-sdk-0.3.0.0: SDK for adding custom Instana tracing support to Haskell applications.

Safe HaskellNone
LanguageHaskell2010

Instana.SDK.Span.EntrySpan

Description

 

Synopsis

Documentation

data EntrySpan Source #

An entry span.

Instances

Eq EntrySpan Source # 
Show EntrySpan Source # 
Generic EntrySpan Source # 

Associated Types

type Rep EntrySpan :: * -> * #

type Rep EntrySpan Source # 
type Rep EntrySpan = D1 * (MetaData "EntrySpan" "Instana.SDK.Span.EntrySpan" "instana-haskell-trace-sdk-0.3.0.0-BjYXpYEiONW3CpKOWUWtGH" False) ((:+:) * (C1 * (MetaCons "RootEntrySpan" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * RootEntry))) (C1 * (MetaCons "NonRootEntrySpan" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * NonRootEntry))))

traceId :: EntrySpan -> Id Source #

Accessor for the trace ID.

spanId :: EntrySpan -> Id Source #

Accessor for the span ID.

parentId :: EntrySpan -> Maybe Id Source #

Parent span ID.

spanName :: EntrySpan -> Text Source #

Name of span.

timestamp :: EntrySpan -> Int Source #

Start time.

errorCount :: EntrySpan -> Int Source #

Error count (error that occured while this span has been active).

serviceName :: EntrySpan -> Maybe Text Source #

An optional attribute for overriding the name of the service in Instana.

setServiceName :: Text -> EntrySpan -> EntrySpan Source #

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

spanData :: EntrySpan -> Value Source #

Optional additional span data.

addData :: Value -> EntrySpan -> EntrySpan Source #

Add a value to the span's data section.

addToErrorCount :: Int -> EntrySpan -> EntrySpan Source #

Add to the error count.