https://github.com/artyom/dietdog
Send logs to DataDog with Go's log.Logger
https://github.com/artyom/dietdog
datadog datadog-logs go logging
Last synced: 3 months ago
JSON representation
Send logs to DataDog with Go's log.Logger
- Host: GitHub
- URL: https://github.com/artyom/dietdog
- Owner: artyom
- License: isc
- Created: 2022-06-21T18:56:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-22T19:30:28.000Z (almost 3 years ago)
- Last Synced: 2025-01-14T07:53:54.959Z (5 months ago)
- Topics: datadog, datadog-logs, go, logging
- Language: Go
- Homepage: https://pkg.go.dev/github.com/artyom/dietdog
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# dietdog, a bare-bones DataDog logger
Stream logs from the standard library log.Logger to DataDog logs API.
## Why?
I wanted to send logs of an existing Go program to the DataDog,
but the official DataDog Go client is enormous, over 9 Mb of source code:$ tar tvzf datadog-api-client-go-1.14.0.tar.gz | \
awk '$NF~/\.go$/&&$NF!~/_test\.go$/{s+=$5}END{print s}'
9646862Yes, I know about the datadog-agent.
It requires more resources than the service that emits logs.