Documentation
¶
Index ¶
- func GetCallerInfo(offset int) (string, string, int)
- func GetGuid() string
- func HasElem(s interface{}, elem interface{}) bool
- func IsEmpty(s string) bool
- func MakeHttpClient(timeout int) *http.Client
- type Counter
- type Logger
- type Logs
- func (ls *Logs) Debug(obj interface{}, args ...interface{}) Logger
- func (ls *Logs) Error(obj interface{}, args ...interface{}) Logger
- func (ls *Logs) Info(obj interface{}, args ...interface{}) Logger
- func (ls *Logs) Panic(obj interface{}, args ...interface{}) Logger
- func (ls *Logs) Register(l Logger)
- func (ls *Logs) SpanDebug(span TracerSpan, obj interface{}, args ...interface{}) Logger
- func (ls *Logs) SpanError(span TracerSpan, obj interface{}, args ...interface{}) Logger
- func (ls *Logs) SpanInfo(span TracerSpan, obj interface{}, args ...interface{}) Logger
- func (ls *Logs) SpanPanic(span TracerSpan, obj interface{}, args ...interface{}) Logger
- func (ls *Logs) SpanWarn(span TracerSpan, obj interface{}, args ...interface{}) Logger
- func (ls *Logs) Stack(offset int) Logger
- func (ls *Logs) Warn(obj interface{}, args ...interface{}) Logger
- type Metricer
- type Metrics
- type MetricsCounter
- type Tracer
- type TracerSpan
- type TracerSpanContext
- type Traces
- func (ts *Traces) Enabled() bool
- func (ts *Traces) Register(t Tracer)
- func (ts *Traces) StartChildSpan(object interface{}) TracerSpan
- func (ts *Traces) StartFollowSpan(object interface{}) TracerSpan
- func (ts *Traces) StartSpan() TracerSpan
- func (ts *Traces) StartSpanWithTraceID(spanID, traceID uint64) TracerSpan
- type TracesSpan
- func (tss *TracesSpan) Error(err error) TracerSpan
- func (tss *TracesSpan) Finish()
- func (tss *TracesSpan) GetContext() TracerSpanContext
- func (tss *TracesSpan) SetBaggageItem(restrictedKey, value string) TracerSpan
- func (tss *TracesSpan) SetCarrier(object interface{}) TracerSpan
- func (tss *TracesSpan) SetName(name string) TracerSpan
- func (tss *TracesSpan) SetTag(key string, value interface{}) TracerSpan
- type TracesSpanContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHttpClient ¶
Types ¶
type Logger ¶
type Logger interface {
Info(obj interface{}, args ...interface{}) Logger
SpanInfo(span TracerSpan, obj interface{}, args ...interface{}) Logger
Warn(obj interface{}, args ...interface{}) Logger
SpanWarn(span TracerSpan, obj interface{}, args ...interface{}) Logger
Error(obj interface{}, args ...interface{}) Logger
SpanError(span TracerSpan, obj interface{}, args ...interface{}) Logger
Debug(obj interface{}, args ...interface{}) Logger
SpanDebug(span TracerSpan, obj interface{}, args ...interface{}) Logger
Panic(obj interface{}, args ...interface{}) Logger
SpanPanic(span TracerSpan, obj interface{}, args ...interface{}) Logger
Stack(offset int) Logger
}
type Logs ¶
type Logs struct {
// contains filtered or unexported fields
}
func (*Logs) SpanDebug ¶
func (ls *Logs) SpanDebug(span TracerSpan, obj interface{}, args ...interface{}) Logger
func (*Logs) SpanError ¶
func (ls *Logs) SpanError(span TracerSpan, obj interface{}, args ...interface{}) Logger
func (*Logs) SpanInfo ¶
func (ls *Logs) SpanInfo(span TracerSpan, obj interface{}, args ...interface{}) Logger
func (*Logs) SpanPanic ¶
func (ls *Logs) SpanPanic(span TracerSpan, obj interface{}, args ...interface{}) Logger
func (*Logs) SpanWarn ¶
func (ls *Logs) SpanWarn(span TracerSpan, obj interface{}, args ...interface{}) Logger
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics() *Metrics
type MetricsCounter ¶
type MetricsCounter struct {
// contains filtered or unexported fields
}
func (*MetricsCounter) Inc ¶
func (msc *MetricsCounter) Inc(values ...string) Counter
type Tracer ¶
type Tracer interface {
Enabled() bool
StartSpan() TracerSpan
StartSpanWithTraceID(traceID uint64) TracerSpan
StartChildSpan(object interface{}) TracerSpan
StartFollowSpan(object interface{}) TracerSpan
}
type TracerSpan ¶
type TracerSpan interface {
GetContext() TracerSpanContext
SetCarrier(object interface{}) TracerSpan
SetName(name string) TracerSpan
SetTag(key string, value interface{}) TracerSpan
Error(err error) TracerSpan
SetBaggageItem(restrictedKey, value string) TracerSpan
Finish()
}
type TracerSpanContext ¶
type Traces ¶
type Traces struct {
// contains filtered or unexported fields
}
func (*Traces) StartChildSpan ¶
func (ts *Traces) StartChildSpan(object interface{}) TracerSpan
func (*Traces) StartFollowSpan ¶
func (ts *Traces) StartFollowSpan(object interface{}) TracerSpan
func (*Traces) StartSpan ¶
func (ts *Traces) StartSpan() TracerSpan
func (*Traces) StartSpanWithTraceID ¶
func (ts *Traces) StartSpanWithTraceID(spanID, traceID uint64) TracerSpan
type TracesSpan ¶
type TracesSpan struct {
// contains filtered or unexported fields
}
func (*TracesSpan) Error ¶
func (tss *TracesSpan) Error(err error) TracerSpan
func (*TracesSpan) Finish ¶
func (tss *TracesSpan) Finish()
func (*TracesSpan) GetContext ¶
func (tss *TracesSpan) GetContext() TracerSpanContext
func (*TracesSpan) SetBaggageItem ¶
func (tss *TracesSpan) SetBaggageItem(restrictedKey, value string) TracerSpan
func (*TracesSpan) SetCarrier ¶
func (tss *TracesSpan) SetCarrier(object interface{}) TracerSpan
func (*TracesSpan) SetName ¶
func (tss *TracesSpan) SetName(name string) TracerSpan
func (*TracesSpan) SetTag ¶
func (tss *TracesSpan) SetTag(key string, value interface{}) TracerSpan
type TracesSpanContext ¶
type TracesSpanContext struct {
// contains filtered or unexported fields
}
func (TracesSpanContext) GetSpanID ¶
func (tssc TracesSpanContext) GetSpanID() uint64
func (TracesSpanContext) GetTraceID ¶
func (tssc TracesSpanContext) GetTraceID() uint64
Click to show internal directories.
Click to hide internal directories.