stress

package
v3.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StderrTracer

type StderrTracer struct {
	NoOpTracer *tab.NoOpTracer
}

StderrTracer is a wrapper around a NoOpTracer so we can add in a really simple stderr logger. Useful for seeing some of the internal state changes (like retries) that aren't normally customer visible.

func (*StderrTracer) FromContext

func (ft *StderrTracer) FromContext(ctx context.Context) tab.Spanner

FromContext creates a stderrSpanner to allow for our stderrLogger to be created.

func (*StderrTracer) NewContext

func (ft *StderrTracer) NewContext(parent context.Context, span tab.Spanner) context.Context

NewContext forwards to NoOpTracer.NewContext

func (*StderrTracer) StartSpan

func (ft *StderrTracer) StartSpan(ctx context.Context, operationName string, opts ...interface{}) (context.Context, tab.Spanner)

StartSpan forwards to NoOpTracer.StartSpan.

func (*StderrTracer) StartSpanWithRemoteParent

func (ft *StderrTracer) StartSpanWithRemoteParent(ctx context.Context, operationName string, carrier tab.Carrier, opts ...interface{}) (context.Context, tab.Spanner)

StartSpanWithRemoteParent forwards to NoOpTracer.StartSpanWithRemoteParent.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL