otel

package module
v0.0.0-...-d8ddd61 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

func NewLog

func NewLog(cfg telemetry.LogConfig) (*Log, error)

func (*Log) Debug

func (m *Log) Debug(ctx context.Context, msg string, attrs ...slog.Attr)

func (*Log) Error

func (m *Log) Error(ctx context.Context, msg string, attrs ...slog.Attr)

func (*Log) Info

func (m *Log) Info(ctx context.Context, msg string, attrs ...slog.Attr)

func (*Log) Panic

func (m *Log) Panic(ctx context.Context, msg string, attrs ...slog.Attr)

func (*Log) Shutdown

func (m *Log) Shutdown(ctx context.Context) error

func (*Log) Warn

func (m *Log) Warn(ctx context.Context, msg string, attrs ...slog.Attr)

type LogProvide

type LogProvide struct {
	// contains filtered or unexported fields
}

type Metric

type Metric struct {
	// contains filtered or unexported fields
}

func NewMetric

func NewMetric(cfg telemetry.MetricConfig) (*Metric, error)

func (*Metric) Shutdown

func (m *Metric) Shutdown(ctx context.Context) error

type Propagate

type Propagate struct {
}

func NewPropagate

func NewPropagate(_ telemetry.PropagateConfig) (*Propagate, error)

func (*Propagate) Shutdown

func (m *Propagate) Shutdown(_ context.Context) error

type Provide

type Provide struct {
	// contains filtered or unexported fields
}

func NewProvide

func NewProvide(cfg telemetry.ProviderConfig) *Provide

func (*Provide) CollectorEndpoint

func (m *Provide) CollectorEndpoint() string

func (*Provide) NewLogControl

func (m *Provide) NewLogControl(cfg telemetry.LogConfig) (telemetry.LoggerControl, error)

func (*Provide) NewMetricControl

func (m *Provide) NewMetricControl(cfg telemetry.MetricConfig) (telemetry.MeterControl, error)

func (*Provide) NewPropagateControl

func (m *Provide) NewPropagateControl(cfg telemetry.PropagateConfig) (telemetry.PropagatorControl, error)

func (*Provide) NewTraceControl

func (m *Provide) NewTraceControl(cfg telemetry.TraceConfig) (telemetry.TracerControl, error)

type Trace

type Trace struct {
	// contains filtered or unexported fields
}

func NewTrace

func NewTrace(cfg telemetry.TraceConfig) (*Trace, error)

func (*Trace) Shutdown

func (m *Trace) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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