Plug and play package that wraps base functionally and initialization of Datadog Service.
- APM, StatsD Initialization
- StatsD metrics unification
Supported middleware to correlate/extend traceability and logs in Datadog.
- gRPC Server
- gRPC Client
- HTTP - Echo
- HTTP - Standard library Client
- Database - GORM
- Database - Standard library
https://pkg.go.dev/github.com/coopnorge/go-datadog-lib/v2
The source code is build using mage.
-
Install Go version 1.24 or later and Docker.
-
Install Go tools:
go install tool
go tool mage validatego tool mage -lTo generate or update mocks use
gomockhandler. gomockhandler is
provided by golang-devtools.
docker compose run --rm golang-devtools gomockhandler -config ./gomockhandler.json checkdocker compose run --rm golang-devtools gomockhandler -config ./gomockhandler.json mockgenUser documentation is built using TechDocs and published to Inventory.
To list the commands available for the TechDocs image:
docker compose run --rm helpFor more information see the TechDocs Engineering Image.
To Validate changed documentation:
docker compose run --rm techdocs validateTo validate all documentation:
docker compose run --rm techdocs validate MARKDOWN_FILES=docs/To preview the documentation:
docker compose up techdocs