Documentation ¶
Overview ¶
Package logs provides utils for transforming OTLP LogRecord to Datadog format it also provides sender for submitting transformed logs to datadog backend This uses datadog-api-client-go for submitting logs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHostnameService ¶ added in v0.100.0
func NewHostnameService(provider source.Provider) hostnameinterface.Component
NewHostnameService creates a new instance of the component hostname
Types ¶
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender submits logs to Datadog intake
func NewSender ¶
func NewSender(endpoint string, logger *zap.Logger, hcs confighttp.ClientConfig, verbose bool, apiKey string) *Sender
NewSender creates a new Sender
func (*Sender) SubmitLogs ¶
SubmitLogs submits the logs contained in payload to the Datadog intake
Click to show internal directories.
Click to hide internal directories.