Documentation ¶
Overview ¶
Package logs provides utils for transforming OTLP LogRecord to Datadog format
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Translator ¶ added in v0.11.0
type Translator struct {
// contains filtered or unexported fields
}
Translator of OTLP logs to Datadog format
func NewTranslator ¶ added in v0.11.0
func NewTranslator(set component.TelemetrySettings, attributesTranslator *attributes.Translator, otelSource string) (*Translator, error)
NewTranslator returns a new Translator
func (*Translator) MapLogs ¶ added in v0.11.0
func (t *Translator) MapLogs(ctx context.Context, ld plog.Logs) []datadogV2.HTTPLogItem
MapLogs from OTLP format to Datadog format.
Click to show internal directories.
Click to hide internal directories.