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 implements zerolog.LevelWriter interface.
func NewOtelWriter ¶
func NewOtelWriter(loggerProvider log.LoggerProvider) (*OtelWriter, error)
NewOtelWriter creates a new OpenTelemetry writer for zerolog.
func (*OtelWriter) Write ¶
func (w *OtelWriter) Write(p []byte) (n int, err error)
Write implements io.Writer.
func (*OtelWriter) WriteLevel ¶
WriteLevel implements zerolog.LevelWriter.
Click to show internal directories.
Click to hide internal directories.