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 *config.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 Create OTLP/gRPC exporter, default port: 4317
func NewOtlpHttpExporter ¶
func NewOtlpHttpExporter(ctx context.Context, endpoint string, insecure bool, options ...otlptracehttp.Option) (tracesdk.SpanExporter, error)
NewOtlpHttpExporter Create OTLP/HTTP exporter, default port: 4318
func NewTracerExporter ¶
func NewTracerExporter(exporterName, endpoint string, insecure bool) (tracesdk.SpanExporter, error)
NewTracerExporter create tracer exporter: zipkin, otlp-http, otlp-grpc
func NewTracerProvider ¶
func NewTracerProvider(cfg *conf.Tracer, serviceInfo *config.ServiceInfo) error
NewTracerProvider create new tracer provider
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.