tracing

package
v0.45.10 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTracingURL = "http://localhost:14268/api/traces"
View Source
const FlagTracing = "tracing"

Variables

This section is empty.

Functions

func DefaultTracerProvider

func DefaultTracerProvider() (*trace.TracerProvider, error)

func GetTracerProviderOptions

func GetTracerProviderOptions(url string) ([]trace.TracerProviderOption, error)

func TracerProvider

func TracerProvider(url string) (*trace.TracerProvider, error)

Types

type Info

type Info struct {
	Tracer *otrace.Tracer

	BlockSpan *otrace.Span
	// contains filtered or unexported fields
}

func (*Info) GetContext

func (i *Info) GetContext() context.Context

func (*Info) SetContext

func (i *Info) SetContext(c context.Context)

func (*Info) Start

func (i *Info) Start(name string) (context.Context, otrace.Span)

func (*Info) StartWithContext

func (i *Info) StartWithContext(name string, ctx context.Context) (context.Context, otrace.Span)

Jump to

Keyboard shortcuts

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