Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OtelWriter ¶
type OtelWriter struct {
// contains filtered or unexported fields
}
OtelWriter is a custom writer that emits logs to an OTLP exporter using a LogEmitter. It implements the io.Writer interface, allowing it to be used with any function that accepts an io.Writer. The OtelWriter is designed to be used with the OpenTelemetry Go SDK.
func NewOtelWriter ¶
func NewOtelWriter(source string) *OtelWriter
NewOtelWriter creates an OtelWriter using an OTLP exporter and LogEmitter with log.source tag set.
Click to show internal directories.
Click to hide internal directories.