package
0.0.0-20250310215609-16c172e8e603
Repository: https://github.com/geonet/kit.git
Documentation: pkg.go.dev

# Functions

AppName returns the application name.
DataDogHttp initiates collection of HTTP and system metrics every 60s.
DataDogMsg initiates collection of messaging and system metrics every 60s.
Sends current metrics immediately.
DoProcess executes m.Process with messaging metrics.
DoProcess executes m.Process with messaging metrics.
Hostname returns the hostname (can be empty).
MsgErr increments the message error counter.
MsgProc increments the message processed counter.
MsgRx increments the message received counter.
MsgTx increments the message transmitted counter.
ReadHttpCounters populates m with http counter delta values since last time it was called.
ReadMsgCounters populates m with message counter delta values since last time it was called.
No description provided by the author
Request increments the http request counter.
Start returns started Timer.
StatusBadRequest increments the http response 400 counter.
StatusInternalServerError increments the http response 500 counter.
StatusNotFound increments the http response 404 counter.
StatusOK increments the http response 200 counter.
StatusServiceUnavailable increments the http response 503 counter.
StatusUnauthorized increments the http response 400 counter.
Written increments the bytes sent counter by n.

# Structs

A HttpCounters records http counters.
A MsgCounters records message counters.
Timer is for timing events.
No description provided by the author

# Interfaces

Logger defines an interface for logging.
Message defines an interface for processing bytes.
processor with passed in context to catch possible system stop signal.