Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportEmpty ¶
func ExportEmpty() func(ctx context.Context) (trace.SpanExporter, error)
ExportEmpty 空实现 启用trace但不导出任何上报数据
func NewTraceProvider ¶
func NewTraceProvider(serviceName, version string, traceExporter TraceExporter) (*trace.TracerProvider, error)
Types ¶
type TraceExporter ¶
type TraceExporter func(ctx context.Context) (trace.SpanExporter, error)
TraceExporter 创建trace导出对象的方法类型
func ExportHTTP ¶
func ExportHTTP(endpoint string, usehttps bool) TraceExporter
ExportHTTP 使用HTTP方式 导出上报数据
Click to show internal directories.
Click to hide internal directories.