confotel

package
v0.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogProcessorRegistryFrom  = contextx.From[tCtxLogProcessorRegistry, LogProcessorRegistry]
	MustLogProcessorRegistry  = contextx.Must[tCtxLogProcessorRegistry, LogProcessorRegistry]
	WithLogProcessorRegistry  = contextx.With[tCtxLogProcessorRegistry, LogProcessorRegistry]
	CarryLogProcessorRegistry = contextx.Carry[tCtxLogProcessorRegistry, LogProcessorRegistry]
)

Functions

This section is empty.

Types

type LogProcessorRegistry

type LogProcessorRegistry interface {
	RegisterLogProcessor(p otelsdklogger.Processor)
}

type Otel

type Otel struct {
	LogLevel  logx.LogLevel  `env:",omitempty"`
	LogFormat logx.LogFormat `env:",omitempty"`

	TraceCollectorEndpoint  string         `env:",omitempty"`
	MetricCollectorEndpoint string         `env:",omitempty"`
	MetricCollectInterval   types.Duration `env:",omitempty"`
	// contains filtered or unexported fields
}

func (*Otel) Close

func (o *Otel) Close(c context.Context) error

func (*Otel) Init

func (o *Otel) Init(ctx context.Context) error

func (*Otel) SetDefault

func (o *Otel) SetDefault()

func (*Otel) WithContext

func (o *Otel) WithContext(ctx context.Context) context.Context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL