tracing

package
v0.66.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v0.65.0

func Init() error

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"`
}

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