datadog

package
v1.10.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package datadog provides a telemetry backend that sends events to Datadog's HTTP Logs Intake API. It maps telemetry.Event to Datadog's native log format with region-aware endpoint resolution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(apiKey string, log logger.Logger, opts ...Option) telemetry.Backend

NewBackend creates a Datadog telemetry backend. apiKey is the Datadog API key (not an application key).

Types

type Option

type Option func(*config)

Option configures the Datadog backend.

func WithRegion

func WithRegion(region Region) Option

WithRegion sets the Datadog region. Default: RegionUS1.

func WithSource

func WithSource(source string) Option

WithSource overrides the ddsource tag. Default: "gtb".

type Region

type Region string

Region identifies a Datadog data center region.

const (
	RegionUS1 Region = "us1" // default
	RegionUS3 Region = "us3"
	RegionUS5 Region = "us5"
	RegionEU1 Region = "eu1"
	RegionAP1 Region = "ap1"
	RegionAP2 Region = "ap2"
	RegionGOV Region = "gov"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL