tracing

package
v0.0.0-...-3a65784 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoopProvider

type NoopProvider struct{}

type NoopSpan

type NoopSpan struct{}

func (NoopSpan) AddEvent

func (NoopSpan) AddEvent(name string, options ...otrace.EventOption)

func (NoopSpan) End

func (NoopSpan) End(options ...otrace.SpanEndOption)

func (NoopSpan) IsRecording

func (NoopSpan) IsRecording() bool

func (NoopSpan) RecordError

func (NoopSpan) RecordError(err error, options ...otrace.EventOption)

func (NoopSpan) SetAttributes

func (NoopSpan) SetAttributes(kv ...attribute.KeyValue)

func (NoopSpan) SetName

func (NoopSpan) SetName(name string)

func (NoopSpan) SetStatus

func (NoopSpan) SetStatus(code codes.Code, description string)

func (NoopSpan) SpanContext

func (NoopSpan) SpanContext() otrace.SpanContext

func (NoopSpan) TracerProvider

func (NoopSpan) TracerProvider() otrace.TracerProvider

type NoopTracer

type NoopTracer struct{}

func (*NoopTracer) Start

func (d *NoopTracer) Start(ctx context.Context, spanName string, opts ...otrace.SpanStartOption) (context.Context, otrace.Span)

type Provider

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

func NewProvider

func NewProvider(ctx context.Context, serviceName, exporterURL string, isNoop bool) (*Provider, error)

func (*Provider) RegisterAsGlobal

func (p *Provider) RegisterAsGlobal() (func(ctx context.Context) error, error)

Jump to

Keyboard shortcuts

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