Versions in this module Expand all Collapse all v1 v1.2.5 Sep 23, 2024 Changes in this version + const DebugLevelApi + const DebugLevelDmedb + const DebugLevelDmereq + const DebugLevelEtcd + const DebugLevelEvents + const DebugLevelFedapi + const DebugLevelInfo + const DebugLevelInfra + const DebugLevelLocapi + const DebugLevelMetrics + const DebugLevelNotify + const DebugLevelSampled + const DebugLevelUpgrade + var DebugLevelStrings = []string + var DebugLevel_CamelName = map[int32]string + var DebugLevel_CamelValue = map[string]int32 + var DebugLevel_name = map[int32]string + var DebugLevel_value = map[string]int32 + var IgnoreLvl uint64 = 99999 + var JaegerUnitTest bool + var ReporterMetrics *metricstest.Backend + var SamplingEnabled = true + var ShowMethodNames = map[string]struct{} + var SpanServiceName string + func AuditLogEnd(id uint64, err error) + func AuditLogStart(id uint64, cmd, client, user string, keysAndValues ...interface{}) + func ChildSpan(ctx context.Context, lvl uint64, operationName string) (opentracing.Span, context.Context) + func ClearDebugLevel(lvl uint64) + func ClearDebugLevelEnum(val DebugLevel) + func ClearDebugLevelStrs(list string) + func ClearDebugLevels(vals []DebugLevel) + func ContextWithSpan(ctx context.Context, span opentracing.Span) context.Context + func DebugLog(lvl uint64, msg string, keysAndValues ...interface{}) + func DebugSLog(slog *zap.SugaredLogger, lvl uint64, msg string, keysAndValues ...interface{}) + func EnumDecodeHook(from, to reflect.Type, data interface{}) (interface{}, error) + func FatalLog(msg string, keysAndValues ...interface{}) + func FinishTracer() + func ForceLogSpan(span opentracing.Span) + func GetDebugLevel() uint64 + func GetDebugLevelStrs() string + func GetEnumParseHelp(t reflect.Type) (string, string, bool) + func GetLineno(skip int) string + func GetTags(span opentracing.Span) map[string]interface + func IgnoreSpanTag(tag string) bool + func InfoLog(msg string, keysAndValues ...interface{}) + func InitTracer(tlsConfig *tls.Config) + func IsShow(cmd string) bool + func NewReporter(serviceName string, tlsConfig *tls.Config, rc *config.ReporterConfig, ...) (jaeger.Reporter, io.Closer) + func NewSpanFromGrpc(ctx context.Context, lvl uint64, spanName string) opentracing.Span + func NewSpanFromString(lvl uint64, val, spanName string, opts ...opentracing.StartSpanOption) opentracing.Span + func NoLogSpan(span opentracing.Span) + func NoTracingSpan() opentracing.Span + func SetContextTags(ctx context.Context, tags map[string]string) + func SetDebugLevel(lvl uint64) + func SetDebugLevelEnum(val DebugLevel) + func SetDebugLevelStrs(list string) + func SetDebugLevels(vals []DebugLevel) + func SetTags(span opentracing.Span, tags map[string]string) + func SetupLoggers(logFile string) + func SpanFromContext(ctx context.Context) opentracing.Span + func SpanLog(ctx context.Context, lvl uint64, msg string, keysAndValues ...interface{}) + func SpanToString(ctx context.Context) string + func SpanTraceID(ctx context.Context) string + func StartSpan(lvl uint64, operationName string, opts ...opentracing.StartSpanOption) opentracing.Span + func StartTestSpan(ctx context.Context, opts ...opentracing.StartSpanOption) context.Context + func StreamClientTraceGrpc(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, ...) (grpc.ClientStream, error) + func UnaryClientTraceGrpc(ctx context.Context, method string, req, resp interface{}, cc *grpc.ClientConn, ...) error + func Unsuppress(ospan opentracing.Span) + func WarnLog(msg string, keysAndValues ...interface{}) + type DebugLevel int32 + const DebugLevel_api + const DebugLevel_dmedb + const DebugLevel_dmereq + const DebugLevel_etcd + const DebugLevel_events + const DebugLevel_fedapi + const DebugLevel_info + const DebugLevel_infra + const DebugLevel_locapi + const DebugLevel_metrics + const DebugLevel_notify + const DebugLevel_sampled + const DebugLevel_upgrade + func DebugLevels() []DebugLevel + func ParseDebugLevel(data interface{}) (DebugLevel, error) + func (DebugLevel) EnumDescriptor() ([]byte, []int) + func (e *DebugLevel) UnmarshalJSON(b []byte) error + func (e *DebugLevel) UnmarshalYAML(unmarshal func(interface{}) error) error + func (e DebugLevel) MarshalJSON() ([]byte, error) + func (e DebugLevel) MarshalYAML() (interface{}, error) + func (x DebugLevel) String() string + type FieldMap struct + func MakeFieldMap(fields []string) *FieldMap + func NewFieldMap(fields map[string]struct{}) *FieldMap + func (s *FieldMap) Clear(key string) + func (s *FieldMap) Count() int + func (s *FieldMap) Fields() []string + func (s *FieldMap) Has(key string) bool + func (s *FieldMap) HasOrHasChild(key string) bool + func (s *FieldMap) Set(key string) + type MatchOpt func(*MatchOptions) + func MatchFilter() MatchOpt + func MatchIgnoreBackend() MatchOpt + func MatchSortArrayedKeys() MatchOpt + type MatchOptions struct + Filter bool + IgnoreBackend bool + SortArrayedKeys bool + type ReporterCloser struct + func (s *ReporterCloser) Close() error + type Span struct + func (s *Span) Finish() + func (s *Span) Tracer() opentracing.Tracer + type SpanCarrier struct + Config SpanConfig + Data TraceData + type SpanConfig struct + HasLogs bool + NoLogStartFinish bool + NoTracing bool + Suppress bool + SuppressWithoutLogs bool + func (s *SpanConfig) ToOptions() []opentracing.StartSpanOption + type SpanLineno struct + func WithSpanLineno(lineno string) SpanLineno + func (s SpanLineno) Apply(options *opentracing.StartSpanOptions) + type TraceData map[string]string + func (t TraceData) ForeachKey(handler func(key, val string) error) error + func (t TraceData) Set(key, val string) + type WithHasLogs struct + func (s WithHasLogs) Apply(options *opentracing.StartSpanOptions) + type WithNoLogStartFinish struct + func (s WithNoLogStartFinish) Apply(options *opentracing.StartSpanOptions) + type WithNoTracing struct + func (s WithNoTracing) Apply(options *opentracing.StartSpanOptions) + type WithSuppress struct + func (s WithSuppress) Apply(options *opentracing.StartSpanOptions) + type WithSuppressWithoutLogs struct + func (s WithSuppressWithoutLogs) Apply(options *opentracing.StartSpanOptions)