Liking cljdoc? Tell your friends :D

wagoe.observability.logging.shell.adapters.datadog

Datadog logging adapter implementation.

This adapter integrates with Datadog (https://datadoghq.com) for production logging, audit tracking, and observability. It implements all logging protocols to provide comprehensive structured logging capabilities that integrate with Datadog's platform.

Features:

  • Structured JSON logging to Datadog HTTP API
  • Log levels with proper Datadog level mapping
  • Context management (correlation IDs, request metadata)
  • Audit event logging for compliance
  • Security event tracking
  • Batch processing for performance
  • Runtime configuration management

Configuration: The adapter requires a Datadog API key and service name, optionally accepting:

  • Source identifier (application/component name)
  • Hostname override
  • Custom tags
  • Custom endpoint (for EU region, etc.)
  • Batch size and flush interval settings

Example: (def datadog-logger (create-datadog-logger {:api-key "your-32-char-datadog-api-key" :service "my-service" :source "my-app" :environment "production" :tags ["team:backend" "version:1.0.0"] :batch-size 50 :flush-interval 5000}))

Datadog logging adapter implementation.

This adapter integrates with Datadog (https://datadoghq.com) for production logging,
audit tracking, and observability. It implements all logging protocols to provide
comprehensive structured logging capabilities that integrate with Datadog's platform.

Features:
- Structured JSON logging to Datadog HTTP API
- Log levels with proper Datadog level mapping
- Context management (correlation IDs, request metadata)
- Audit event logging for compliance
- Security event tracking
- Batch processing for performance
- Runtime configuration management

Configuration:
The adapter requires a Datadog API key and service name, optionally accepting:
- Source identifier (application/component name)
- Hostname override
- Custom tags
- Custom endpoint (for EU region, etc.)
- Batch size and flush interval settings

Example:
(def datadog-logger
  (create-datadog-logger
    {:api-key "your-32-char-datadog-api-key"
     :service "my-service"
     :source "my-app"
     :environment "production"
     :tags ["team:backend" "version:1.0.0"]
     :batch-size 50
     :flush-interval 5000}))
raw docstring

create-datadog-audit-loggerclj

(create-datadog-audit-logger config)

Create a Datadog audit logger instance.

Create a Datadog audit logger instance.
sourceraw docstring

create-datadog-loggerclj

(create-datadog-logger config)

Create a Datadog logger instance.

Create a Datadog logger instance.
sourceraw docstring

create-datadog-logging-componentclj

(create-datadog-logging-component config)

Create a complete Datadog logging component that implements all protocols.

This is the recommended way to create Datadog logging for use with Integrant.

Create a complete Datadog logging component that implements all protocols.

This is the recommended way to create Datadog logging for use with Integrant.
sourceraw docstring

create-datadog-logging-componentsclj

(create-datadog-logging-components config)

Create a map of Datadog logging components for Integrant system configuration.

Returns a map with keys:

  • :logger - ILogger implementation
  • :audit-logger - IAuditLogger implementation
  • :logging-context - ILoggingContext implementation
  • :logging-config - ILoggingConfig implementation
Create a map of Datadog logging components for Integrant system configuration.

Returns a map with keys:
- :logger - ILogger implementation
- :audit-logger - IAuditLogger implementation
- :logging-context - ILoggingContext implementation
- :logging-config - ILoggingConfig implementation
sourceraw docstring

create-datadog-logging-configclj

(create-datadog-logging-config config)

Create a Datadog logging config instance.

Create a Datadog logging config instance.
sourceraw docstring

create-datadog-logging-contextclj

(create-datadog-logging-context _config)

Create a Datadog logging context instance.

Create a Datadog logging context instance.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close