tracing

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALWAYS = "always"
	NEVER  = "never"
	RATIO  = "ratio"
)

Sampling Strategy

View Source
const (
	JAEGER = "jaeger"
	OTLP   = "otlp"
)

Exporter end

View Source
const ServiceName = "dubbo-go-pixiu"

Variables

This section is empty.

Functions

This section is empty.

Types

type Holder

type Holder struct {
	Tracers map[string]Trace
}

Holder Unique Name by making Id self-incrementing。

type ProtocolName

type ProtocolName string

Different Listeners listen to different protocol requests, and create the corresponding tracer

const HTTPProtocol ProtocolName = "HTTP"

type Trace

type Trace interface {
	trace.Tracer
}

Trace interface need to be implemented to construct your Tracer.

type TraceDriver

type TraceDriver struct {
	trace.TracerProvider
}

Tracers corresponding to the listening protocol are maintained by the holder

func InitDriver

func InitDriver(bs *model.Bootstrap) *TraceDriver

InitDriver loading BootStrap configuration about trace

type TraceDriverManager

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

TraceDriverManager Driver maintains all tracers and the provider.

func CreateDefaultTraceDriverManager

func CreateDefaultTraceDriverManager(bs *model.Bootstrap) *TraceDriverManager

func (*TraceDriverManager) GetDriver

func (manager *TraceDriverManager) GetDriver() *TraceDriver

type Tracer

type Tracer struct {
	Trace trace.Tracer
}

Wrap the tracer provided by otel and be asked to implement the Trace interface to customize the Span implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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