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

Instana.SDK.Config

Description

 
Synopsis

Documentation

data Config Source #

Configuration for the Instana SDK. Please use the defaultConfig function and then modify individual settings via record syntax For more information, see http://www.yesodweb.com/book/settings-types.

Constructors

Config 

Fields

  • agentHost :: Maybe String

    IP or host name of the Instana agent

  • agentPort :: Maybe Int

    Port of the Instana agent

  • serviceName :: Maybe String

    Overrides the default service name that is used in Instana.

  • forceTransmissionAfter :: Maybe Int

    Spans are usually buffered before being transmitted to the agent. This setting forces the transmission of all buffered spans after the given amount of milliseconds. Default: 1000.

  • forceTransmissionStartingAt :: Maybe Int

    This setting forces the transmission of all buffered spans when the given number of spans has been buffered.

  • maxBufferedSpans :: Maybe Int

    Limits the number of spans to buffer. When the limit is reached, spans will be dropped. This setting is a safe guard against memory leaks from buffering excessive amounts of spans. It must be larger than forceTransmissionStartingAt.

  • disableW3cTraceCorrelation :: Bool

    Disables continuing traces from W3C trace context (traceparent header).

Instances

Instances details
Eq Config Source # 
Instance details

Defined in Instana.SDK.Config

Methods

(==) :: Config -> Config -> Bool #

(/=) :: Config -> Config -> Bool #

Generic Config Source # 
Instance details

Defined in Instana.SDK.Config

Associated Types

type Rep Config :: Type -> Type #

Methods

from :: Config -> Rep Config x #

to :: Rep Config x -> Config #

type Rep Config Source # 
Instance details

Defined in Instana.SDK.Config

type Rep Config = D1 ('MetaData "Config" "Instana.SDK.Config" "instana-haskell-trace-sdk-0.7.1.0-inplace" 'False) (C1 ('MetaCons "Config" 'PrefixI 'True) ((S1 ('MetaSel ('Just "agentHost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: (S1 ('MetaSel ('Just "agentPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "serviceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))) :*: ((S1 ('MetaSel ('Just "forceTransmissionAfter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "forceTransmissionStartingAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "maxBufferedSpans") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "disableW3cTraceCorrelation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))

defaultConfig :: Config Source #

Populates all config values as Nothing, so that the Instana SDK relies on environment variables or on its default config values (in this order) internally.