Documentation
¶
Index ¶
- Variables
- func Ctx(ctx context.Context, log Logger) context.Context
- func Error(ctx context.Context, msg string, args ...any)
- func Info(ctx context.Context, msg string, args ...any)
- func SetLog(l Logger)
- func SkipStr(s string)
- func Warn(ctx context.Context, msg string, args ...any)
- func With(ctx context.Context, args ...any) context.Context
- type Config
- type Logger
- type Run
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Tracer trace.Tracer Start func(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span) )
View Source
var Meter metric.Meter
Functions ¶
Types ¶
type Config ¶
type Config struct {
Name string `json:"name" yaml:"name" mapstructure:"name"`
LogSource bool `json:"logSource" yaml:"logSource" mapstructure:"logSource"`
Type string `json:"type" yaml:"type" mapstructure:"type"`
MetricDisable bool `json:"metricDisable" yaml:"metricDisable" mapstructure:"metricDisable"`
TraceDisable bool `json:"traceDisable" yaml:"traceDisable" mapstructure:"traceDisable"`
TraceRatio float64 `json:"traceRatio" yaml:"traceRatio" mapstructure:"traceRatio"`
}
Click to show internal directories.
Click to hide internal directories.