Documentation ¶
Index ¶
- func APIKey() string
- func Address() string
- func Debug(args ...interface{})
- func Error(args ...interface{})
- func Info(args ...interface{})
- func Initialize(c DDConfig) (err error)
- func Monitor() gin.HandlerFunc
- func NewAgentWriter(url string, portNo int, ddApikey string) io.Writer
- func Port() int
- func Stop()
- type DDConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Address ¶
func Address() string
Address is the current address where the log entries will be sent.
func Initialize ¶
Initialize bootstraps the logging and tracing to be sent to a Datadog Agent.
func NewAgentWriter ¶
NewAgentWriter returns a new DDAgentWriter
Types ¶
type DDConfig ¶
type DDConfig struct { TraceIntakeHost string `yaml:"traceintakehost"` TraceIntakePort int `yaml:"traceintakeport"` LogIntakeURL string `yaml:"logintakeurl"` LogIntakePort int `yaml:"logintakeport"` APIKey string `yaml:"apikey"` Environment string `yaml:"environment"` ServiceName string `yaml:"servicename"` ServiceVersion string `yaml:"serviceversion"` GlobalTags map[string]interface{} `yaml:"globaltags"` Commit string `yaml:"commit"` LogBufferSize int `yaml:"logbuffersize"` LogTimeout int `yaml:"logtimeout"` }
DDConfig are the values required to to initialize the use of sending logs and traces to a Datadog Agent.
Click to show internal directories.
Click to hide internal directories.