Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCExport ¶
func NewGRPCExport(ctx context.Context, conf TracerConfig) (trace.SpanExporter, error)
NewGRPCExport 创建一个使用 GRPC 协议连接的Exporter
func NewHTTPExport ¶
func NewHTTPExport(ctx context.Context, conf TracerConfig) (trace.SpanExporter, error)
NewHTTPExport 创建一个使用 HTTP 协议连接的Exporter
Types ¶
type ExportTracer ¶
type ExportTracer func(context.Context, TracerConfig) (trace.SpanExporter, error)
func LoadExport ¶
func LoadExport(driver string) ExportTracer
type TracerBatch ¶
type TracerConfig ¶
type TracerConfig struct {
Driver string `json:"driver" description:"Tracer驱动"` // e.g jaeger
Disabled bool `json:"disabled,omitempty" description:"是否禁用"`
Endpoint string `json:"endpoint" description:"接口地址"`
Batch TracerBatch `json:"batch" description:"批量上传配置"`
Auth map[string]string `json:"auth,omitempty" description:"认证"`
Options map[string]any `json:"options,omitempty" description:"驱动独立参数参数"`
Credentials *tls.ClientCredentials `json:"credentials,omitempty" description:"ssl链接配置"`
}
Click to show internal directories.
Click to hide internal directories.