Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOpenTelemetryRequestSpan ¶
NewOpenTelemetryRequestSpan creates a new OpenTelemetryRequestSpan.
func NewOpenTelemetryRequestTracer ¶
func NewOpenTelemetryRequestTracer(provider trace.TracerProvider) gocb.RequestTracer
NewOpenTelemetryRequestTracer creates a new OpenTelemetryRequestTracer.
Types ¶
type OpenTelemetryRequestSpan ¶
type OpenTelemetryRequestSpan struct {
// contains filtered or unexported fields
}
OpenTelemetryRequestSpan is an implementation of the gocb Span interface which wraps an OpenTelemetry span.
func (*OpenTelemetryRequestSpan) AddEvent ¶
func (span *OpenTelemetryRequestSpan) AddEvent(key string, timestamp time.Time)
AddEvent adds an event to this span.
func (*OpenTelemetryRequestSpan) Context ¶
func (span *OpenTelemetryRequestSpan) Context() gocb.RequestSpanContext
Context returns the RequestSpanContext for this span.
func (*OpenTelemetryRequestSpan) End ¶
func (span *OpenTelemetryRequestSpan) End()
End completes the span.
func (*OpenTelemetryRequestSpan) SetAttribute ¶
func (span *OpenTelemetryRequestSpan) SetAttribute(key string, value interface{})
SetAttribute adds an attribute to this span.
type OpenTelemetryRequestTracer ¶
type OpenTelemetryRequestTracer struct {
// contains filtered or unexported fields
}
OpenTelemetryRequestTracer is an implementation of the gocb Tracer interface which wraps an OpenTelemetry tracer.
func (*OpenTelemetryRequestTracer) RequestSpan ¶
func (tracer *OpenTelemetryRequestTracer) RequestSpan(parentContext gocb.RequestSpanContext, operationName string) gocb.RequestSpan
RequestSpan provides a wrapped OpenTelemetry Span.
Click to show internal directories.
Click to hide internal directories.