Documentation ¶
Index ¶
- func NewOtlpGrpcExporter(ctx context.Context, endpoint string, insecure bool, ...) (traceSdk.SpanExporter, error)
- func NewOtlpHttpExporter(ctx context.Context, endpoint string, insecure bool, ...) (traceSdk.SpanExporter, error)
- func NewTracerExporter(exporterName, endpoint string, insecure bool) (traceSdk.SpanExporter, error)
- func NewTracerProvider(cfg *conf.Tracer, serviceInfo *utils.ServiceInfo) error
- func NewZipkinExporter(_ context.Context, endpoint string) (traceSdk.SpanExporter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOtlpGrpcExporter ¶
func NewOtlpGrpcExporter(ctx context.Context, endpoint string, insecure bool, options ...otlptracegrpc.Option) (traceSdk.SpanExporter, error)
NewOtlpGrpcExporter 创建OTLP/gRPC导出器,默认端口:4317
func NewOtlpHttpExporter ¶
func NewOtlpHttpExporter(ctx context.Context, endpoint string, insecure bool, options ...otlptracehttp.Option) (traceSdk.SpanExporter, error)
NewOtlpHttpExporter 创建OTLP/HTTP导出器,默认端口:4318
func NewTracerExporter ¶
func NewTracerExporter(exporterName, endpoint string, insecure bool) (traceSdk.SpanExporter, error)
NewTracerExporter 创建一个导出器,支持:zipkin、otlp-http、otlp-grpc
func NewTracerProvider ¶
func NewTracerProvider(cfg *conf.Tracer, serviceInfo *utils.ServiceInfo) error
NewTracerProvider 创建一个链路追踪器
func NewZipkinExporter ¶
NewZipkinExporter 创建一个zipkin导出器,默认对端地址:http://localhost:9411/api/v2/spans
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.