Registry / observability / datadog-datadog-go

datadog-datadog-go

JSON →
library4.8.3+incompatiblegogounverified

The official Go client library for sending metrics, events, and service checks to Datadog.

go get github.com/DataDog/datadog-go
INSTALL
IMPORT
SIG · DATADOG-DATADOG-GO
D
datadog-datadog-go
observabilitygov4.8.3+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

statsd
github.com/DataDog/datadog-go/statsd

Sends a gauge metric to Datadog via StatsD.

package main import ( "log" "github.com/DataDog/datadog-go/statsd" ) func main() { client, err := statsd.New("127.0.0.1:8125") if err != nil { log.Fatal(err) } defer client.Close() client.Gauge("my.metric", 1.0, []string{"tag:value"}, 1) }
Debug
Known issues
breakingVersion 4.x+ uses a different API than 3.x; the import path changed from `github.com/DataDog/datadog-go` to `github.com/DataDog/datadog-go/statsd`.
fix
Update import path and API calls accordingly.
affects: >=4.0.0
Upgrade
Version history
4.8.3+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
2
Resources
datadog-datadog-go — go get datadog-datadog-go · libregistry