tracing

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartSpan

func StartSpan(ctx context.Context, name string) (context.Context, trace.Span)

func TimestampToStringValue

func TimestampToStringValue(t *timestamppb.Timestamp) attribute.Value

Types

type Config added in v0.49.1

type Config struct {
	ServiceName  string  `env:"TRACING_SERVICE_NAME"`
	AgentHost    string  `env:"TRACING_AGENT_HOST"`
	AgentPort    string  `env:"TRACING_AGENT_PORT"`
	SamplerParam float64 `env:"TRACING_SAMPLER_PARAM"`
}

func Initialize

func Initialize() (*Config, error)

type Logger

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

func NewLogger

func NewLogger(logger *zap.Logger) *Logger

func (*Logger) Debug

func (l *Logger) Debug(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Error

func (l *Logger) Error(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Fatal

func (l *Logger) Fatal(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Info

func (l *Logger) Info(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Warn

func (l *Logger) Warn(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) ZapLogger

func (l *Logger) ZapLogger() *zap.Logger

Jump to

Keyboard shortcuts

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