Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandlerOptions ¶
HandlerOptions are options for a OtelHandler. A zero HandlerOptions consists entirely of default values.
type OtelHandler ¶
type OtelHandler struct {
// contains filtered or unexported fields
}
OtelHandler is a Handler that writes Records to OTLP
func NewOtelHandler ¶
func NewOtelHandler(loggerProvider otel.LoggerProvider, opts *HandlerOptions) *OtelHandler
NewOtelHandler creates a OtelHandler that writes to otlp, using the given options. If opts is nil, the default options are used.
Click to show internal directories.
Click to hide internal directories.