Documentation ¶
Index ¶
- func GetGuid() string
- func NewSpanID() string
- func NewTraceID() string
- func SpanIDBytesToHex(bytes [8]byte) string
- func SpanIDHexToUint64(hex string) uint64
- func SpanIDUint64ToHex(n uint64) string
- func TraceIDBytesToHex(bytes [16]byte) string
- func TraceIDHexToUint64(hex string) uint64
- func TraceIDUint64ToHex(n uint64) string
- type Counter
- type Eventer
- type Events
- func (es *Events) At(name string, attributes map[string]string, when time.Time) error
- func (es *Events) Interval(name string, attributes map[string]string, begin, end time.Time) error
- func (es *Events) Now(name string, attributes map[string]string) error
- func (es *Events) Register(e Eventer)
- func (es *Events) Stop()
- type Gauge
- type Group
- type Labels
- 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{})
- 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{})
- func (ls *Logs) SpanWarn(span TracerSpan, obj interface{}, args ...interface{}) Logger
- func (ls *Logs) Stack(offset int) Logger
- func (ls *Logs) Stop()
- func (ls *Logs) Warn(obj interface{}, args ...interface{}) Logger
- type Meter
- type Metrics
- func (ms *Metrics) Counter(group, name, description string, labels Labels, prefixes ...string) Counter
- func (ms *Metrics) Gauge(group, name, description string, labels Labels, prefixes ...string) Gauge
- func (ms *Metrics) Group(group string) Group
- func (ms *Metrics) Register(m Meter)
- func (ms *Metrics) Stop()
- type MetricsCounter
- type MetricsGauge
- type MetricsGroup
- type Tracer
- type TracerSpan
- type TracerSpanContext
- type Traces
- 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(traceID, spanID string) TracerSpan
- func (ts *Traces) Stop()
- 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 NewTraceID ¶ added in v0.0.14
func NewTraceID() string
func SpanIDBytesToHex ¶ added in v0.0.7
func SpanIDHexToUint64 ¶ added in v0.0.7
func SpanIDUint64ToHex ¶ added in v0.0.7
func TraceIDBytesToHex ¶ added in v0.0.7
func TraceIDHexToUint64 ¶ added in v0.0.7
func TraceIDUint64ToHex ¶ added in v0.0.7
Types ¶
type Events ¶ added in v0.0.15
type Events struct {
// contains filtered or unexported fields
}
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{}) SpanPanic(span TracerSpan, obj interface{}, args ...interface{}) Stack(offset int) Logger Stop() }
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{})
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) Add ¶ added in v0.3.0
func (msc *MetricsCounter) Add(value int) Counter
func (*MetricsCounter) Inc ¶
func (msc *MetricsCounter) Inc() Counter
type MetricsGauge ¶ added in v0.2.2
type MetricsGauge struct {
// contains filtered or unexported fields
}
func (*MetricsGauge) Set ¶ added in v0.2.2
func (msg *MetricsGauge) Set(value float64) Gauge
type MetricsGroup ¶ added in v0.5.0
type MetricsGroup struct {
// contains filtered or unexported fields
}
func (*MetricsGroup) Clear ¶ added in v0.5.0
func (mg *MetricsGroup) Clear()
type Tracer ¶
type Tracer interface { StartSpan() TracerSpan StartSpanWithTraceID(traceID, spanID string) TracerSpan StartChildSpan(object interface{}) TracerSpan StartFollowSpan(object interface{}) TracerSpan Stop() }
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(traceID, spanID string) 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() string
func (TracesSpanContext) GetTraceID ¶
func (tssc TracesSpanContext) GetTraceID() string
Click to show internal directories.
Click to hide internal directories.