Documentation
¶
Index ¶
Constants ¶
View Source
const (
AppName = "trace"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TRACE_PROVIDER ¶
type TRACE_PROVIDER string
const ( // 标准otlp http协议 TRACE_PROVIDER_OTLP TRACE_PROVIDER = "otlp" // 开发环境使用 TRACE_PROVIDER_STDOUT TRACE_PROVIDER = "stdout" )
type Trace ¶ added in v2.0.3
type Trace struct { ioc.ObjectImpl Enable bool `json:"enable" yaml:"enable" toml:"enable" env:"ENABLE"` Provider TRACE_PROVIDER `toml:"provider" json:"provider" yaml:"provider" env:"PROVIDER"` Endpoint string `toml:"endpoint" json:"endpoint" yaml:"endpoint" env:"ENDPOINT"` Insecure bool `toml:"insecure" json:"insecure" yaml:"insecure" env:"INSECURE"` // 采样率配置 TraceIDRatio float64 `toml:"trace_id_ratio" json:"trace_id_ratio" yaml:"trace_id_ratio" env:"TRACE_ID_RATIO"` // 上报配置 BatchTimeout time.Duration `toml:"batch_timeout" json:"batch_timeout" yaml:"batch_timeout" env:"BATCH_TIMEOUT"` MaxExportBatchSize int `toml:"max_export_batch_size" json:"max_export_batch_size" yaml:"max_export_batch_size" env:"MAX_EXPORT_BATCH_SIZE"` MaxQueueSize int `toml:"max_queue_size" json:"max_queue_size" yaml:"max_queue_size" env:"MAX_QUEUE_SIZE"` // contains filtered or unexported fields }
func (*Trace) Init ¶ added in v2.0.3
otlp go sdk 使用方法: https://opentelemetry.io/docs/languages/go/exporters/ jaeger 端口说明: https://www.jaegertracing.io/docs/1.55/getting-started/#all-in-one
Click to show internal directories.
Click to hide internal directories.