katip-datadog-0.2.0.0: Datadog scribe for the Katip logging framework

Safe HaskellNone
LanguageHaskell2010

Katip.Scribes.Datadog.TCP

Contents

Description

Creates a scribe as a Custom Forwarder for Datadog that sends log messages over TCP via their TLS endpoint.

Synopsis

Types

newtype APIKey Source #

When writing directly to the main intake API, you must specify an API key

Constructors

APIKey 

Fields

Instances
Eq APIKey Source # 
Instance details

Defined in Katip.Scribes.Datadog.TCP

Methods

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

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

Show APIKey Source # 
Instance details

Defined in Katip.Scribes.Datadog.TCP

data DatadogScribeSettings Source #

Constructors

DatadogScribeSettings 

Fields

data DatadogAuth Source #

Constructors

NoAuthLocal

Writing to the local agent, no auth required

DirectAuth APIKey

Writing directly to the main intake API over TLS . API Key is required. Using a local agent is recommended.

directAPIConnectionParams :: ConnectionParams Source #

Configured for secure TLS communication to the main intake API at intake.logs.datadoghq.com:10516. Must be combined with DirectAuth authentication.

localAgentConnectionParams :: PortNumber -> ConnectionParams Source #

Configure to talk to a local Datadog agent at 127.0.0.1. TLS is not utilized. This is the preferred type of connection because authentication, buffering, and other more advanced features are handled by the agent configuration.

Scribe construction

mkDatadogScribeSettings :: ConnectionParams -> DatadogAuth -> IO DatadogScribeSettings Source #

Reasonable defaults. Sets a 30s connection timeout, 1 stripe of connections with a number of connections per stripe equal to getNumCapabilities. Retry policy will do an exponential backoff with a 25ms base delay for up to 5 retries for a total cumulative delay of 775ms

mkDatadogScribe Source #

Arguments

:: DatadogScribeSettings 
-> PermitFunc

Function on whether to permit items, e.g. permitItem InfoS

-> Verbosity

Verbosity level to observe

-> IO Scribe