Documentation ¶
Index ¶
- type OpenTelemetryMeter
- func (meter *OpenTelemetryMeter) Counter(name string, tags map[string]string) (gocb.Counter, error)
- func (meter *OpenTelemetryMeter) Provider() metric.MeterProvider
- func (meter *OpenTelemetryMeter) ValueRecorder(name string, tags map[string]string) (gocb.ValueRecorder, error)
- func (meter *OpenTelemetryMeter) Wrapped() metric.Meter
- type OpenTelemetryRequestSpan
- func (span *OpenTelemetryRequestSpan) AddEvent(key string, timestamp time.Time)
- func (span *OpenTelemetryRequestSpan) Context() gocb.RequestSpanContext
- func (span *OpenTelemetryRequestSpan) End()
- func (span *OpenTelemetryRequestSpan) SetAttribute(key string, value interface{})
- func (span *OpenTelemetryRequestSpan) Wrapped() trace.Span
- type OpenTelemetryRequestTracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenTelemetryMeter ¶
type OpenTelemetryMeter struct {
// contains filtered or unexported fields
}
OpenTelemetryMeter is an implementation of the gocb Meter interface which wraps an OpenTelemetry meter.
func NewOpenTelemetryMeter ¶
func NewOpenTelemetryMeter(provider metric.MeterProvider) *OpenTelemetryMeter
NewOpenTelemetryMeter creates a new OpenTelemetryMeter.
func (*OpenTelemetryMeter) Counter ¶
func (meter *OpenTelemetryMeter) Counter(name string, tags map[string]string) (gocb.Counter, error)
Counter provides a wrapped OpenTelemetry Counter.
func (*OpenTelemetryMeter) Provider ¶ added in v0.2.0
func (meter *OpenTelemetryMeter) Provider() metric.MeterProvider
func (*OpenTelemetryMeter) ValueRecorder ¶
func (meter *OpenTelemetryMeter) ValueRecorder(name string, tags map[string]string) (gocb.ValueRecorder, error)
ValueRecorder provides a wrapped OpenTelemetry ValueRecorder.
func (*OpenTelemetryMeter) Wrapped ¶ added in v0.2.0
func (meter *OpenTelemetryMeter) Wrapped() metric.Meter
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 NewOpenTelemetryRequestSpan ¶
func NewOpenTelemetryRequestSpan(ctx context.Context, span trace.Span) *OpenTelemetryRequestSpan
NewOpenTelemetryRequestSpan creates a new OpenTelemetryRequestSpan.
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.
func (*OpenTelemetryRequestSpan) Wrapped ¶ added in v0.2.0
func (span *OpenTelemetryRequestSpan) Wrapped() trace.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 NewOpenTelemetryRequestTracer ¶
func NewOpenTelemetryRequestTracer(provider trace.TracerProvider) *OpenTelemetryRequestTracer
NewOpenTelemetryRequestTracer creates a new OpenTelemetryRequestTracer.
func (*OpenTelemetryRequestTracer) Provider ¶ added in v0.2.0
func (tracer *OpenTelemetryRequestTracer) Provider() trace.TracerProvider
func (*OpenTelemetryRequestTracer) RequestSpan ¶
func (tracer *OpenTelemetryRequestTracer) RequestSpan(parentContext gocb.RequestSpanContext, operationName string) gocb.RequestSpan
RequestSpan provides a wrapped OpenTelemetry Span.
func (*OpenTelemetryRequestTracer) Wrapped ¶ added in v0.2.0
func (tracer *OpenTelemetryRequestTracer) Wrapped() trace.Tracer