Documentation
¶
Overview ¶
Package obstest contains the private in-memory observability harness used by this library's tests. It must never be imported by production packages.
Index ¶
- func ChildOf(parent, child sdktrace.ReadOnlySpan) bool
- type Harness
- func (h *Harness) CounterValue(ctx context.Context, name string, attrs ...attribute.KeyValue) (int64, bool)
- func (h *Harness) GaugeValue(ctx context.Context, name string, attrs ...attribute.KeyValue) (float64, bool)
- func (h *Harness) HistogramCount(ctx context.Context, name string, attrs ...attribute.KeyValue) (uint64, bool)
- func (h *Harness) Logger(scope string) instrument.Logger
- func (h *Harness) Logs() []sdklog.Record
- func (h *Harness) LogsBySeverity(severity log.Severity) []sdklog.Record
- func (h *Harness) MeterProvider() metric.MeterProvider
- func (h *Harness) Propagator() propagation.TextMapPropagator
- func (h *Harness) Spans() []sdktrace.ReadOnlySpan
- func (h *Harness) SpansByName(name string) []sdktrace.ReadOnlySpan
- func (h *Harness) TracerProvider() trace.TracerProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChildOf ¶
func ChildOf(parent, child sdktrace.ReadOnlySpan) bool
Types ¶
type Harness ¶
type Harness struct {
// contains filtered or unexported fields
}
func (*Harness) CounterValue ¶
func (*Harness) GaugeValue ¶
func (*Harness) HistogramCount ¶
func (*Harness) LogsBySeverity ¶
func (*Harness) MeterProvider ¶
func (h *Harness) MeterProvider() metric.MeterProvider
func (*Harness) Propagator ¶
func (h *Harness) Propagator() propagation.TextMapPropagator
func (*Harness) Spans ¶
func (h *Harness) Spans() []sdktrace.ReadOnlySpan
func (*Harness) SpansByName ¶
func (h *Harness) SpansByName(name string) []sdktrace.ReadOnlySpan
func (*Harness) TracerProvider ¶
func (h *Harness) TracerProvider() trace.TracerProvider
Click to show internal directories.
Click to hide internal directories.