Documentation ¶
Index ¶
- Constants
- type DataDogCounter
- type DataDogEventer
- func (dde *DataDogEventer) At(name string, attributes map[string]string, when time.Time) error
- func (dde *DataDogEventer) Interval(name string, attributes map[string]string, begin, end time.Time) error
- func (dde *DataDogEventer) Now(name string, attributes map[string]string) error
- func (dde *DataDogEventer) Stop()
- type DataDogEventerOptions
- type DataDogGauge
- type DataDogInternalLogger
- type DataDogLogger
- func (dd *DataDogLogger) Debug(obj interface{}, args ...interface{}) common.Logger
- func (dd *DataDogLogger) Error(obj interface{}, args ...interface{}) common.Logger
- func (dd *DataDogLogger) Info(obj interface{}, args ...interface{}) common.Logger
- func (dd *DataDogLogger) Panic(obj interface{}, args ...interface{})
- func (dd *DataDogLogger) SpanDebug(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
- func (dd *DataDogLogger) SpanError(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
- func (dd *DataDogLogger) SpanInfo(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
- func (dd *DataDogLogger) SpanPanic(span common.TracerSpan, obj interface{}, args ...interface{})
- func (dd *DataDogLogger) SpanWarn(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
- func (dd *DataDogLogger) Stack(offset int) common.Logger
- func (dd *DataDogLogger) Stop()
- func (dd *DataDogLogger) Warn(obj interface{}, args ...interface{}) common.Logger
- type DataDogLoggerOptions
- type DataDogMeter
- func (ddm *DataDogMeter) Counter(group, name, description string, labels common.Labels, prefixes ...string) common.Counter
- func (ddm *DataDogMeter) Gauge(group, name, description string, labels common.Labels, prefixes ...string) common.Gauge
- func (ddm *DataDogMeter) Group(name string) common.Group
- func (ddm *DataDogMeter) SetCallerOffset(offset int)
- func (ddm *DataDogMeter) Stop()
- type DataDogMeterOptions
- type DataDogOptions
- type DataDogTracer
- func (dd *DataDogTracer) SetCallerOffset(offset int)
- func (dd *DataDogTracer) StartChildSpan(object interface{}) common.TracerSpan
- func (dd *DataDogTracer) StartFollowSpan(object interface{}) common.TracerSpan
- func (dd *DataDogTracer) StartSpan() common.TracerSpan
- func (dd *DataDogTracer) StartSpanWithTraceID(traceID, spanID string) common.TracerSpan
- func (dd *DataDogTracer) Stop()
- type DataDogTracerOptions
- type DataDogTracerSpan
- func (dds *DataDogTracerSpan) Error(err error) common.TracerSpan
- func (dds *DataDogTracerSpan) Finish()
- func (dds *DataDogTracerSpan) GetContext() common.TracerSpanContext
- func (dds *DataDogTracerSpan) SetBaggageItem(restrictedKey, value string) common.TracerSpan
- func (dds *DataDogTracerSpan) SetCarrier(object interface{}) common.TracerSpan
- func (dds *DataDogTracerSpan) SetName(name string) common.TracerSpan
- func (dds *DataDogTracerSpan) SetTag(key string, value interface{}) common.TracerSpan
- type DataDogTracerSpanContext
- type GrafanaAnnotation
- type GrafanaAnnotationResponse
- type GrafanaEventer
- func (ge *GrafanaEventer) At(name string, attributes map[string]string, when time.Time) error
- func (ge *GrafanaEventer) Interval(name string, attributes map[string]string, begin, end time.Time) error
- func (ge *GrafanaEventer) Now(name string, attributes map[string]string) error
- func (ge *GrafanaEventer) Stop()
- type GrafanaEventerOptions
- type GrafanaOptions
- type JaegerInternalLogger
- type JaegerOptions
- type JaegerSpan
- func (js *JaegerSpan) Error(err error) common.TracerSpan
- func (js JaegerSpan) Finish()
- func (js *JaegerSpan) GetContext() common.TracerSpanContext
- func (js *JaegerSpan) LogFields(fields map[string]interface{}) common.TracerSpan
- func (js *JaegerSpan) SetBaggageItem(restrictedKey, value string) common.TracerSpan
- func (js *JaegerSpan) SetCarrier(object interface{}) common.TracerSpan
- func (js *JaegerSpan) SetName(name string) common.TracerSpan
- func (js *JaegerSpan) SetTag(key string, value interface{}) common.TracerSpan
- type JaegerSpanContext
- type JaegerTracer
- func (j *JaegerTracer) SetCallerOffset(offset int)
- func (j *JaegerTracer) StartChildSpan(object interface{}) common.TracerSpan
- func (j *JaegerTracer) StartFollowSpan(object interface{}) common.TracerSpan
- func (j *JaegerTracer) StartSpan() common.TracerSpan
- func (j *JaegerTracer) StartSpanWithTraceID(traceID, spanID string) common.TracerSpan
- func (j *JaegerTracer) Stop()
- type NewRelicCounter
- type NewRelicEventer
- func (nre *NewRelicEventer) At(name string, attributes map[string]string, when time.Time) error
- func (nre *NewRelicEventer) Interval(name string, attributes map[string]string, begin, end time.Time) error
- func (nre *NewRelicEventer) Now(name string, attributes map[string]string) error
- func (nre *NewRelicEventer) Stop()
- type NewRelicEventerOptions
- type NewRelicGauge
- type NewRelicLogger
- func (nr *NewRelicLogger) Debug(obj interface{}, args ...interface{}) common.Logger
- func (nr *NewRelicLogger) Error(obj interface{}, args ...interface{}) common.Logger
- func (nr *NewRelicLogger) Info(obj interface{}, args ...interface{}) common.Logger
- func (nr *NewRelicLogger) Panic(obj interface{}, args ...interface{})
- func (nr *NewRelicLogger) SpanDebug(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
- func (nr *NewRelicLogger) SpanError(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
- func (nr *NewRelicLogger) SpanInfo(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
- func (nr *NewRelicLogger) SpanPanic(span common.TracerSpan, obj interface{}, args ...interface{})
- func (nr *NewRelicLogger) SpanWarn(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
- func (nr *NewRelicLogger) Stack(offset int) common.Logger
- func (nr *NewRelicLogger) Stop()
- func (nr *NewRelicLogger) Warn(obj interface{}, args ...interface{}) common.Logger
- type NewRelicLoggerOptions
- type NewRelicMeter
- func (nrm *NewRelicMeter) Counter(group, name, description string, labels common.Labels, prefixes ...string) common.Counter
- func (nrm *NewRelicMeter) Gauge(group, name, description string, labels common.Labels, prefixes ...string) common.Gauge
- func (nrm *NewRelicMeter) Group(name string) common.Group
- func (nrm *NewRelicMeter) SetCallerOffset(offset int)
- func (nrm *NewRelicMeter) Stop()
- type NewRelicMeterOptions
- type NewRelicOptions
- type NewRelicTracer
- func (nrt *NewRelicTracer) SetCallerOffset(offset int)
- func (nrt *NewRelicTracer) StartChildSpan(object interface{}) common.TracerSpan
- func (nrt *NewRelicTracer) StartFollowSpan(object interface{}) common.TracerSpan
- func (nrt *NewRelicTracer) StartSpan() common.TracerSpan
- func (nrt *NewRelicTracer) StartSpanWithTraceID(traceID, spanID string) common.TracerSpan
- func (nrt *NewRelicTracer) Stop()
- type NewRelicTracerOptions
- type NewRelicTracerSpan
- func (nrts *NewRelicTracerSpan) Error(err error) common.TracerSpan
- func (nrts *NewRelicTracerSpan) Finish()
- func (nrts *NewRelicTracerSpan) GetContext() common.TracerSpanContext
- func (nrts *NewRelicTracerSpan) SetBaggageItem(restrictedKey, value string) common.TracerSpan
- func (nrts *NewRelicTracerSpan) SetCarrier(object interface{}) common.TracerSpan
- func (nrts *NewRelicTracerSpan) SetName(name string) common.TracerSpan
- func (nrts *NewRelicTracerSpan) SetTag(key string, value interface{}) common.TracerSpan
- type NewRelicTracerSpanContext
- type PrometheusCounter
- type PrometheusGauge
- type PrometheusGroup
- type PrometheusMeter
- func (p *PrometheusMeter) Counter(group, name, description string, labels common.Labels, prefixes ...string) common.Counter
- func (p *PrometheusMeter) Gauge(group, name, description string, labels common.Labels, prefixes ...string) common.Gauge
- func (p *PrometheusMeter) Group(name string) common.Group
- func (p *PrometheusMeter) Start() bool
- func (p *PrometheusMeter) StartInWaitGroup(wg *sync.WaitGroup)
- func (p *PrometheusMeter) Stop()
- type PrometheusOptions
- type Stdout
- func (so *Stdout) Debug(obj interface{}, args ...interface{}) common.Logger
- func (so *Stdout) Error(obj interface{}, args ...interface{}) common.Logger
- func (so *Stdout) Info(obj interface{}, args ...interface{}) common.Logger
- func (so *Stdout) Panic(obj interface{}, args ...interface{})
- func (so *Stdout) SetCallerOffset(offset int)
- func (so *Stdout) SpanDebug(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
- func (so *Stdout) SpanError(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
- func (so *Stdout) SpanInfo(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
- func (so *Stdout) SpanPanic(span common.TracerSpan, obj interface{}, args ...interface{})
- func (so *Stdout) SpanWarn(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
- func (so *Stdout) Stack(offset int) common.Logger
- func (so *Stdout) Stop()
- func (so *Stdout) Warn(obj interface{}, args ...interface{}) common.Logger
- type StdoutOptions
Constants ¶
View Source
const NewRelicHeaderSpanID string = "X-Span-ID"
View Source
const NewRelicHeaderTraceID string = "X-Trace-ID"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataDogCounter ¶ added in v0.0.5
type DataDogCounter struct {
// contains filtered or unexported fields
}
func (*DataDogCounter) Inc ¶ added in v0.0.5
func (ddmc *DataDogCounter) Inc() common.Counter
type DataDogEventer ¶ added in v0.0.15
type DataDogEventer struct {
// contains filtered or unexported fields
}
func NewDataDogEventer ¶ added in v0.0.15
func NewDataDogEventer(options DataDogEventerOptions, logger common.Logger, stdout *Stdout) *DataDogEventer
func (*DataDogEventer) Now ¶ added in v0.0.15
func (dde *DataDogEventer) Now(name string, attributes map[string]string) error
func (*DataDogEventer) Stop ¶ added in v0.0.15
func (dde *DataDogEventer) Stop()
type DataDogEventerOptions ¶ added in v0.0.15
type DataDogEventerOptions struct { DataDogOptions Site string }
type DataDogGauge ¶ added in v0.2.1
type DataDogGauge struct {
// contains filtered or unexported fields
}
type DataDogInternalLogger ¶ added in v0.0.5
type DataDogInternalLogger struct {
// contains filtered or unexported fields
}
func (*DataDogInternalLogger) Log ¶ added in v0.0.5
func (ddtl *DataDogInternalLogger) Log(msg string)
type DataDogLogger ¶
type DataDogLogger struct {
// contains filtered or unexported fields
}
func NewDataDogLogger ¶
func NewDataDogLogger(options DataDogLoggerOptions, logger common.Logger, stdout *Stdout) *DataDogLogger
func (*DataDogLogger) Debug ¶
func (dd *DataDogLogger) Debug(obj interface{}, args ...interface{}) common.Logger
func (*DataDogLogger) Error ¶
func (dd *DataDogLogger) Error(obj interface{}, args ...interface{}) common.Logger
func (*DataDogLogger) Info ¶
func (dd *DataDogLogger) Info(obj interface{}, args ...interface{}) common.Logger
func (*DataDogLogger) Panic ¶
func (dd *DataDogLogger) Panic(obj interface{}, args ...interface{})
func (*DataDogLogger) SpanDebug ¶
func (dd *DataDogLogger) SpanDebug(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
func (*DataDogLogger) SpanError ¶
func (dd *DataDogLogger) SpanError(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
func (*DataDogLogger) SpanInfo ¶
func (dd *DataDogLogger) SpanInfo(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
func (*DataDogLogger) SpanPanic ¶
func (dd *DataDogLogger) SpanPanic(span common.TracerSpan, obj interface{}, args ...interface{})
func (*DataDogLogger) SpanWarn ¶
func (dd *DataDogLogger) SpanWarn(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
func (*DataDogLogger) Stop ¶ added in v0.0.14
func (dd *DataDogLogger) Stop()
func (*DataDogLogger) Warn ¶
func (dd *DataDogLogger) Warn(obj interface{}, args ...interface{}) common.Logger
type DataDogLoggerOptions ¶
type DataDogLoggerOptions struct { DataDogOptions AgentHost string AgentPort int Level string }
type DataDogMeter ¶ added in v0.0.5
type DataDogMeter struct {
// contains filtered or unexported fields
}
func NewDataDogMeter ¶ added in v0.0.5
func NewDataDogMeter(options DataDogMeterOptions, logger common.Logger, stdout *Stdout) *DataDogMeter
func (*DataDogMeter) Group ¶ added in v0.5.0
func (ddm *DataDogMeter) Group(name string) common.Group
func (*DataDogMeter) SetCallerOffset ¶ added in v0.0.5
func (ddm *DataDogMeter) SetCallerOffset(offset int)
func (*DataDogMeter) Stop ¶ added in v0.0.5
func (ddm *DataDogMeter) Stop()
type DataDogMeterOptions ¶ added in v0.0.5
type DataDogMeterOptions struct { DataDogOptions AgentHost string AgentPort int Prefix string }
type DataDogOptions ¶
type DataDogTracer ¶
type DataDogTracer struct {
// contains filtered or unexported fields
}
func NewDataDogTracer ¶
func NewDataDogTracer(options DataDogTracerOptions, logger common.Logger, stdout *Stdout) *DataDogTracer
func (*DataDogTracer) SetCallerOffset ¶
func (dd *DataDogTracer) SetCallerOffset(offset int)
func (*DataDogTracer) StartChildSpan ¶
func (dd *DataDogTracer) StartChildSpan(object interface{}) common.TracerSpan
func (*DataDogTracer) StartFollowSpan ¶
func (dd *DataDogTracer) StartFollowSpan(object interface{}) common.TracerSpan
func (*DataDogTracer) StartSpan ¶
func (dd *DataDogTracer) StartSpan() common.TracerSpan
func (*DataDogTracer) StartSpanWithTraceID ¶
func (dd *DataDogTracer) StartSpanWithTraceID(traceID, spanID string) common.TracerSpan
func (*DataDogTracer) Stop ¶ added in v0.0.5
func (dd *DataDogTracer) Stop()
type DataDogTracerOptions ¶
type DataDogTracerOptions struct { DataDogOptions AgentHost string AgentPort int }
type DataDogTracerSpan ¶
type DataDogTracerSpan struct {
// contains filtered or unexported fields
}
func (*DataDogTracerSpan) Error ¶
func (dds *DataDogTracerSpan) Error(err error) common.TracerSpan
func (*DataDogTracerSpan) Finish ¶
func (dds *DataDogTracerSpan) Finish()
func (*DataDogTracerSpan) GetContext ¶
func (dds *DataDogTracerSpan) GetContext() common.TracerSpanContext
func (*DataDogTracerSpan) SetBaggageItem ¶
func (dds *DataDogTracerSpan) SetBaggageItem(restrictedKey, value string) common.TracerSpan
func (*DataDogTracerSpan) SetCarrier ¶
func (dds *DataDogTracerSpan) SetCarrier(object interface{}) common.TracerSpan
func (*DataDogTracerSpan) SetName ¶
func (dds *DataDogTracerSpan) SetName(name string) common.TracerSpan
func (*DataDogTracerSpan) SetTag ¶
func (dds *DataDogTracerSpan) SetTag(key string, value interface{}) common.TracerSpan
type DataDogTracerSpanContext ¶
type DataDogTracerSpanContext struct {
// contains filtered or unexported fields
}
func (*DataDogTracerSpanContext) GetSpanID ¶
func (ddsc *DataDogTracerSpanContext) GetSpanID() string
func (*DataDogTracerSpanContext) GetTraceID ¶
func (ddsc *DataDogTracerSpanContext) GetTraceID() string
type GrafanaAnnotation ¶ added in v0.0.15
type GrafanaAnnotationResponse ¶ added in v0.0.15
type GrafanaEventer ¶ added in v0.0.15
type GrafanaEventer struct {
// contains filtered or unexported fields
}
func NewGrafanaEventer ¶ added in v0.0.15
func NewGrafanaEventer(options GrafanaEventerOptions, logger common.Logger, stdout *Stdout) *GrafanaEventer
func (*GrafanaEventer) Now ¶ added in v0.0.15
func (ge *GrafanaEventer) Now(name string, attributes map[string]string) error
func (*GrafanaEventer) Stop ¶ added in v0.0.15
func (ge *GrafanaEventer) Stop()
type GrafanaEventerOptions ¶ added in v0.0.15
type GrafanaEventerOptions struct { GrafanaOptions Endpoint string Duration int }
type GrafanaOptions ¶ added in v0.0.15
type JaegerInternalLogger ¶ added in v0.0.5
type JaegerInternalLogger struct {
// contains filtered or unexported fields
}
func (*JaegerInternalLogger) Error ¶ added in v0.0.5
func (j *JaegerInternalLogger) Error(msg string)
func (*JaegerInternalLogger) Infof ¶ added in v0.0.5
func (j *JaegerInternalLogger) Infof(msg string, args ...interface{})
type JaegerOptions ¶
type JaegerSpan ¶
type JaegerSpan struct {
// contains filtered or unexported fields
}
func (*JaegerSpan) Error ¶
func (js *JaegerSpan) Error(err error) common.TracerSpan
func (JaegerSpan) Finish ¶
func (js JaegerSpan) Finish()
func (*JaegerSpan) GetContext ¶
func (js *JaegerSpan) GetContext() common.TracerSpanContext
func (*JaegerSpan) LogFields ¶
func (js *JaegerSpan) LogFields(fields map[string]interface{}) common.TracerSpan
func (*JaegerSpan) SetBaggageItem ¶
func (js *JaegerSpan) SetBaggageItem(restrictedKey, value string) common.TracerSpan
func (*JaegerSpan) SetCarrier ¶
func (js *JaegerSpan) SetCarrier(object interface{}) common.TracerSpan
func (*JaegerSpan) SetName ¶
func (js *JaegerSpan) SetName(name string) common.TracerSpan
func (*JaegerSpan) SetTag ¶
func (js *JaegerSpan) SetTag(key string, value interface{}) common.TracerSpan
type JaegerSpanContext ¶
type JaegerSpanContext struct {
// contains filtered or unexported fields
}
func (*JaegerSpanContext) GetSpanID ¶
func (jsc *JaegerSpanContext) GetSpanID() string
func (*JaegerSpanContext) GetTraceID ¶
func (jsc *JaegerSpanContext) GetTraceID() string
type JaegerTracer ¶ added in v0.0.5
type JaegerTracer struct {
// contains filtered or unexported fields
}
func NewJaegerTracer ¶ added in v0.0.5
func NewJaegerTracer(options JaegerOptions, logger common.Logger, stdout *Stdout) *JaegerTracer
func (*JaegerTracer) SetCallerOffset ¶ added in v0.0.5
func (j *JaegerTracer) SetCallerOffset(offset int)
func (*JaegerTracer) StartChildSpan ¶ added in v0.0.5
func (j *JaegerTracer) StartChildSpan(object interface{}) common.TracerSpan
func (*JaegerTracer) StartFollowSpan ¶ added in v0.0.5
func (j *JaegerTracer) StartFollowSpan(object interface{}) common.TracerSpan
func (*JaegerTracer) StartSpan ¶ added in v0.0.5
func (j *JaegerTracer) StartSpan() common.TracerSpan
func (*JaegerTracer) StartSpanWithTraceID ¶ added in v0.0.5
func (j *JaegerTracer) StartSpanWithTraceID(traceID, spanID string) common.TracerSpan
func (*JaegerTracer) Stop ¶ added in v0.0.5
func (j *JaegerTracer) Stop()
type NewRelicCounter ¶ added in v0.0.14
type NewRelicCounter struct {
// contains filtered or unexported fields
}
func (*NewRelicCounter) Inc ¶ added in v0.0.14
func (nrc *NewRelicCounter) Inc() common.Counter
type NewRelicEventer ¶ added in v0.0.15
type NewRelicEventer struct {
// contains filtered or unexported fields
}
func NewNewRelicEventer ¶ added in v0.0.15
func NewNewRelicEventer(options NewRelicEventerOptions, logger common.Logger, stdout *Stdout) *NewRelicEventer
func (*NewRelicEventer) Now ¶ added in v0.0.15
func (nre *NewRelicEventer) Now(name string, attributes map[string]string) error
func (*NewRelicEventer) Stop ¶ added in v0.0.15
func (nre *NewRelicEventer) Stop()
type NewRelicEventerOptions ¶ added in v0.0.15
type NewRelicEventerOptions struct { NewRelicOptions Endpoint string }
type NewRelicGauge ¶ added in v0.2.1
type NewRelicGauge struct {
// contains filtered or unexported fields
}
type NewRelicLogger ¶ added in v0.0.14
type NewRelicLogger struct {
// contains filtered or unexported fields
}
func NewNewRelicLogger ¶ added in v0.0.14
func NewNewRelicLogger(options NewRelicLoggerOptions, logger common.Logger, stdout *Stdout) *NewRelicLogger
func (*NewRelicLogger) Debug ¶ added in v0.0.14
func (nr *NewRelicLogger) Debug(obj interface{}, args ...interface{}) common.Logger
func (*NewRelicLogger) Error ¶ added in v0.0.14
func (nr *NewRelicLogger) Error(obj interface{}, args ...interface{}) common.Logger
func (*NewRelicLogger) Info ¶ added in v0.0.14
func (nr *NewRelicLogger) Info(obj interface{}, args ...interface{}) common.Logger
func (*NewRelicLogger) Panic ¶ added in v0.0.14
func (nr *NewRelicLogger) Panic(obj interface{}, args ...interface{})
func (*NewRelicLogger) SpanDebug ¶ added in v0.0.14
func (nr *NewRelicLogger) SpanDebug(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
func (*NewRelicLogger) SpanError ¶ added in v0.0.14
func (nr *NewRelicLogger) SpanError(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
func (*NewRelicLogger) SpanInfo ¶ added in v0.0.14
func (nr *NewRelicLogger) SpanInfo(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
func (*NewRelicLogger) SpanPanic ¶ added in v0.0.14
func (nr *NewRelicLogger) SpanPanic(span common.TracerSpan, obj interface{}, args ...interface{})
func (*NewRelicLogger) SpanWarn ¶ added in v0.0.14
func (nr *NewRelicLogger) SpanWarn(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
func (*NewRelicLogger) Stack ¶ added in v0.0.14
func (nr *NewRelicLogger) Stack(offset int) common.Logger
func (*NewRelicLogger) Stop ¶ added in v0.0.14
func (nr *NewRelicLogger) Stop()
func (*NewRelicLogger) Warn ¶ added in v0.0.14
func (nr *NewRelicLogger) Warn(obj interface{}, args ...interface{}) common.Logger
type NewRelicLoggerOptions ¶ added in v0.0.14
type NewRelicLoggerOptions struct { NewRelicOptions Endpoint string AgentHost string AgentPort int Level string }
type NewRelicMeter ¶ added in v0.0.14
type NewRelicMeter struct {
// contains filtered or unexported fields
}
func NewNewRelicMeter ¶ added in v0.0.14
func NewNewRelicMeter(options NewRelicMeterOptions, logger common.Logger, stdout *Stdout) *NewRelicMeter
func (*NewRelicMeter) Group ¶ added in v0.5.0
func (nrm *NewRelicMeter) Group(name string) common.Group
func (*NewRelicMeter) SetCallerOffset ¶ added in v0.0.14
func (nrm *NewRelicMeter) SetCallerOffset(offset int)
func (*NewRelicMeter) Stop ¶ added in v0.0.14
func (nrm *NewRelicMeter) Stop()
type NewRelicMeterOptions ¶ added in v0.0.14
type NewRelicMeterOptions struct { NewRelicOptions Endpoint string Prefix string }
type NewRelicOptions ¶ added in v0.0.14
type NewRelicTracer ¶ added in v0.0.14
type NewRelicTracer struct {
// contains filtered or unexported fields
}
func NewNewRelicTracer ¶ added in v0.0.14
func NewNewRelicTracer(options NewRelicTracerOptions, logger common.Logger, stdout *Stdout) *NewRelicTracer
func (*NewRelicTracer) SetCallerOffset ¶ added in v0.0.14
func (nrt *NewRelicTracer) SetCallerOffset(offset int)
func (*NewRelicTracer) StartChildSpan ¶ added in v0.0.14
func (nrt *NewRelicTracer) StartChildSpan(object interface{}) common.TracerSpan
func (*NewRelicTracer) StartFollowSpan ¶ added in v0.0.14
func (nrt *NewRelicTracer) StartFollowSpan(object interface{}) common.TracerSpan
func (*NewRelicTracer) StartSpan ¶ added in v0.0.14
func (nrt *NewRelicTracer) StartSpan() common.TracerSpan
func (*NewRelicTracer) StartSpanWithTraceID ¶ added in v0.0.14
func (nrt *NewRelicTracer) StartSpanWithTraceID(traceID, spanID string) common.TracerSpan
func (*NewRelicTracer) Stop ¶ added in v0.0.14
func (nrt *NewRelicTracer) Stop()
type NewRelicTracerOptions ¶ added in v0.0.14
type NewRelicTracerOptions struct { NewRelicOptions Endpoint string HeaderTraceID string }
type NewRelicTracerSpan ¶ added in v0.0.14
type NewRelicTracerSpan struct {
// contains filtered or unexported fields
}
func (*NewRelicTracerSpan) Error ¶ added in v0.0.14
func (nrts *NewRelicTracerSpan) Error(err error) common.TracerSpan
func (*NewRelicTracerSpan) Finish ¶ added in v0.0.14
func (nrts *NewRelicTracerSpan) Finish()
func (*NewRelicTracerSpan) GetContext ¶ added in v0.0.14
func (nrts *NewRelicTracerSpan) GetContext() common.TracerSpanContext
func (*NewRelicTracerSpan) SetBaggageItem ¶ added in v0.0.14
func (nrts *NewRelicTracerSpan) SetBaggageItem(restrictedKey, value string) common.TracerSpan
func (*NewRelicTracerSpan) SetCarrier ¶ added in v0.0.14
func (nrts *NewRelicTracerSpan) SetCarrier(object interface{}) common.TracerSpan
func (*NewRelicTracerSpan) SetName ¶ added in v0.0.14
func (nrts *NewRelicTracerSpan) SetName(name string) common.TracerSpan
func (*NewRelicTracerSpan) SetTag ¶ added in v0.0.14
func (nrts *NewRelicTracerSpan) SetTag(key string, value interface{}) common.TracerSpan
type NewRelicTracerSpanContext ¶ added in v0.0.14
type NewRelicTracerSpanContext struct {
// contains filtered or unexported fields
}
func (*NewRelicTracerSpanContext) GetSpanID ¶ added in v0.0.14
func (nrtsc *NewRelicTracerSpanContext) GetSpanID() string
func (*NewRelicTracerSpanContext) GetTraceID ¶ added in v0.0.14
func (nrtsc *NewRelicTracerSpanContext) GetTraceID() string
type PrometheusCounter ¶
type PrometheusCounter struct {
// contains filtered or unexported fields
}
func (*PrometheusCounter) Add ¶ added in v0.3.0
func (pc *PrometheusCounter) Add(value int) common.Counter
func (*PrometheusCounter) Inc ¶
func (pc *PrometheusCounter) Inc() common.Counter
type PrometheusGauge ¶ added in v0.2.1
type PrometheusGauge struct {
// contains filtered or unexported fields
}
type PrometheusGroup ¶ added in v0.5.0
type PrometheusGroup struct {
// contains filtered or unexported fields
}
func (*PrometheusGroup) Clear ¶ added in v0.5.0
func (p *PrometheusGroup) Clear()
type PrometheusMeter ¶ added in v0.0.5
type PrometheusMeter struct {
// contains filtered or unexported fields
}
func NewPrometheusMeter ¶ added in v0.0.5
func NewPrometheusMeter(options PrometheusOptions, logger common.Logger, stdout *Stdout) *PrometheusMeter
func (*PrometheusMeter) Group ¶ added in v0.5.0
func (p *PrometheusMeter) Group(name string) common.Group
func (*PrometheusMeter) Start ¶ added in v0.0.5
func (p *PrometheusMeter) Start() bool
func (*PrometheusMeter) StartInWaitGroup ¶ added in v0.0.7
func (p *PrometheusMeter) StartInWaitGroup(wg *sync.WaitGroup)
func (*PrometheusMeter) Stop ¶ added in v0.0.5
func (p *PrometheusMeter) Stop()
type PrometheusOptions ¶
type Stdout ¶
type Stdout struct {
// contains filtered or unexported fields
}
func NewStdout ¶
func NewStdout(options StdoutOptions) *Stdout
func (*Stdout) SetCallerOffset ¶
func (*Stdout) SpanDebug ¶
func (so *Stdout) SpanDebug(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
func (*Stdout) SpanError ¶
func (so *Stdout) SpanError(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
func (*Stdout) SpanInfo ¶
func (so *Stdout) SpanInfo(span common.TracerSpan, obj interface{}, args ...interface{}) common.Logger
func (*Stdout) SpanPanic ¶
func (so *Stdout) SpanPanic(span common.TracerSpan, obj interface{}, args ...interface{})
Click to show internal directories.
Click to hide internal directories.