Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsSystemProvider ¶
func NewOTELProvider ¶
func NewSystemProvider ¶
func NewSystemProvider(params SystemParams) (*log.LoggerProvider, error)
NewSystemProvider returns the process log stream provider if available, falling back to stdout.
Types ¶
type SystemParams ¶
type SystemParams struct {
fx.In
// ProcessLogProvider is the OTEL log provider from the process log stream.
// When available, system logs are sent to the process log stream.
// When nil, falls back to stdout.
ProcessLogProvider *log.LoggerProvider `name:"process-log-provider" optional:"true"`
}
Click to show internal directories.
Click to hide internal directories.