mysqlotel

package module
v0.0.0-...-0fd43c5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTracer

func NewTracer(address string) instrumentedsql.Tracer

NewTracer returns a tracer that will fetch spans using opentracing's SpanFromContext function if traceOrphans is set to true, then spans with no parent will be traced anyway, if false, they will not be.

Types

type Span

type Span struct {
	// contains filtered or unexported fields
}

func (Span) Finish

func (s Span) Finish()

func (Span) NewChild

func (s Span) NewChild(name string) instrumentedsql.Span

func (Span) SetError

func (s Span) SetError(err error)

func (Span) SetLabel

func (s Span) SetLabel(k, v string)

type Tracer

type Tracer struct {
	// contains filtered or unexported fields
}

func (Tracer) GetSpan

func (t Tracer) GetSpan(ctx context.Context) instrumentedsql.Span

GetSpan returns a span

Jump to

Keyboard shortcuts

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