trace

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAgent

func InitAgent(agent *Agent) *trace.TracerProvider

Types

type Agent

type Agent struct {
	Name        string  `json:",optional"`
	Endpoint    string  `json:",optional"`
	SamplerMode string  `json:",optional,default=never,options=ratio|always|never"`
	Sampler     float64 `json:",default=1.0"`
	Batcher     string  `json:",default=jaeger,options=zipkin|jaeger|prometheus|otelgrpc|otelhttp|file"`
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(name string, endpoint string, samplerMode string, sampler float64, batcher string, o ...TelemetryOptions) *Agent

type TelemetryOptions

type TelemetryOptions func(*telemetryOptions)

func WithCollectorOptions

func WithCollectorOptions(opts ...otlptracehttp.Option) TelemetryOptions

func WithOtelGrpcOptions

func WithOtelGrpcOptions(opts ...otlptracegrpc.Option) TelemetryOptions

func WithOtelHttpOptions

func WithOtelHttpOptions(opts ...otlptracehttp.Option) TelemetryOptions

func WithTracerProviderOptions

func WithTracerProviderOptions(opts ...trace.TracerProviderOption) TelemetryOptions

func WithZipkinOptions

func WithZipkinOptions(opts ...zipkin.Option) TelemetryOptions

Directories

Path Synopsis
jaeger
this is a modified version of jaeger exporter in https://github.com/zeromicro/go-zero/blob/master/core/trace/agent.go
this is a modified version of jaeger exporter in https://github.com/zeromicro/go-zero/blob/master/core/trace/agent.go

Jump to

Keyboard shortcuts

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