Skip to content

Light library package to wrap DataDog functionality

License

Notifications You must be signed in to change notification settings

coopnorge/go-datadog-lib

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coop Datadog Go package

Build

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

Documentation

There is detailed documentation stored in docs.

Mocks

To generate or update mocks use gomockhandler. gomockhandler is provided by golang-devtools.

Check mocks

docker compose run --rm golang-devtools gomockhandler -config ./gomockhandler.json check

Generate / Update mocks

docker compose run --rm golang-devtools gomockhandler -config ./gomockhandler.json mockgen

Development workflow

Validate

docker compose run --rm golang-devtools validate

Other targets

docker compose run --rm golang-devtools help

User documentation

User documentation is build using TechDocs and published to Inventory.

To list the commands available for the TechDocs image:

docker compose run --rm help

For more information see the TechDocs Engineering Image.

Documentation validation

To Validate changed documentation:

docker compose run --rm techdocs validate

To validate all documentation:

docker compose run --rm techdocs validate MARKDOWN_FILES=docs/

Documentation preview

To preview the documentation:

docker compose up techdocs