Documentation
¶
Index ¶
- func RegisterRequestTracer(requestTracer RequestTracer) error
- type ListenerTracerComponent
- type NoopTracer
- type ObserverLabels
- type RequestSpan
- type RequestSpanContext
- type RequestTracer
- type Trace
- type TracerComponent
- func (tc *TracerComponent) NewListenerTracerComponent(opTracerContext RequestSpanContext) ListenerTracerComponent
- func (tc *TracerComponent) ResponseValueRecord(service, operation string, start time.Time)
- func (tc *TracerComponent) StartOpTelemeteryHandler(service string, operation string, traceContext RequestSpanContext, ...) *opTelemetryHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRequestTracer ¶
func RegisterRequestTracer(requestTracer RequestTracer) error
Types ¶
type ListenerTracerComponent ¶
type NoopTracer ¶
type NoopTracer struct{}
func (*NoopTracer) RequestSpan ¶
func (tracer *NoopTracer) RequestSpan(parentContext RequestSpanContext, operationName string) RequestSpan
RequestSpan creates a new RequestSpan.
type ObserverLabels ¶
type ObserverLabels struct {
// contains filtered or unexported fields
}
func NewObserverLabels ¶
func NewObserverLabels(vbID uint16, collectionIDs map[uint32]string) *ObserverLabels
type RequestSpan ¶
type RequestSpan interface { End() Context() RequestSpanContext AddEvent(name string, timestamp time.Time) SetAttribute(key string, value interface{}) }
type RequestSpanContext ¶
type RequestTracer ¶
type RequestTracer interface {
RequestSpan(parentContext RequestSpanContext, operationName string) RequestSpan
}
type Trace ¶
type Trace struct {
// contains filtered or unexported fields
}
func (*Trace) RootContext ¶
func (t *Trace) RootContext() RequestSpanContext
type TracerComponent ¶
type TracerComponent struct {
// contains filtered or unexported fields
}
func NewTracerComponent ¶
func NewTracerComponent() *TracerComponent
func (*TracerComponent) NewListenerTracerComponent ¶
func (tc *TracerComponent) NewListenerTracerComponent(opTracerContext RequestSpanContext) ListenerTracerComponent
func (*TracerComponent) ResponseValueRecord ¶
func (tc *TracerComponent) ResponseValueRecord(service, operation string, start time.Time)
func (*TracerComponent) StartOpTelemeteryHandler ¶
func (tc *TracerComponent) StartOpTelemeteryHandler( service string, operation string, traceContext RequestSpanContext, observerLabels *ObserverLabels, ) *opTelemetryHandler
Click to show internal directories.
Click to hide internal directories.