tracing

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: Apache-2.0 Imports: 15 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 JaegerAgent

type JaegerAgent struct {
	Host string
	Port string
}

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

type Settings

type Settings struct {
	ServiceName  string
	JaegerAgent  JaegerAgent
	SamplerParam float64
}

func Initialize

func Initialize() (Settings, error)

Jump to

Keyboard shortcuts

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