Documentation
¶
Index ¶
- func StartSpan(ctx context.Context, name string) (context.Context, trace.Span)
- func TimestampToStringValue(t *timestamppb.Timestamp) attribute.Value
- type Config
- type Logger
- func (l *Logger) Debug(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) Error(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) Fatal(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) Info(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) Warn(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) ZapLogger() *zap.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.