Documentation
¶
Overview ¶
Package otel 提供 HTTP tracing 中间件。
该包只负责 span 创建、上下文传播和错误状态记录,不负责 exporter 或 provider 初始化,后者应由应用装配层显式提供。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
TracerProvider oteltrace.TracerProvider
TracerName string
Propagator propagation.TextMapPropagator
SpanNameBuilder func(*gin.Context) string
}
Config 描述 tracing 中间件配置。
Click to show internal directories.
Click to hide internal directories.