memory

package
v3.10.53 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

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

type Span

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

func (*Span) AddEvent

func (s *Span) AddEvent(name string, opts ...tracer.EventOption)

func (*Span) AddLabels

func (s *Span) AddLabels(kv ...interface{})

func (*Span) AddLogs

func (s *Span) AddLogs(kv ...interface{})

func (*Span) Context

func (s *Span) Context() context.Context

func (*Span) Finish

func (s *Span) Finish(_ ...tracer.SpanOption)

func (*Span) Kind

func (s *Span) Kind() tracer.SpanKind

func (*Span) SetName

func (s *Span) SetName(name string)

func (*Span) SetStatus

func (s *Span) SetStatus(st tracer.SpanStatus, msg string)

func (*Span) SpanID

func (s *Span) SpanID() string

func (*Span) Status

func (s *Span) Status() (tracer.SpanStatus, string)

func (*Span) TraceID

func (s *Span) TraceID() string

func (*Span) Tracer

func (s *Span) Tracer() tracer.Tracer

type Tracer

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

func NewTracer

func NewTracer(opts ...tracer.Option) *Tracer

NewTracer returns new memory tracer

func (*Tracer) Flush

func (t *Tracer) Flush(_ context.Context) error

func (*Tracer) Init

func (t *Tracer) Init(opts ...tracer.Option) error

func (*Tracer) Name

func (t *Tracer) Name() string

func (*Tracer) Spans

func (t *Tracer) Spans() []tracer.Span

func (*Tracer) Start

func (t *Tracer) Start(ctx context.Context, name string, opts ...tracer.SpanOption) (context.Context, tracer.Span)

Jump to

Keyboard shortcuts

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