Documentation ¶
Index ¶
- type ExporterProvider
- type GRPCOptions
- type HTTPOptions
- type JaegerOptions
- type Option
- func Attributes(attrs ...attribute.KeyValue) Option
- func GRPC(gRPCOptions *GRPCOptions) Option
- func HTTP(httpOptions *HTTPOptions) Option
- func IDGenerator(idGen sdktrace.IDGenerator) Option
- func Jaeger(jaegerOptions *JaegerOptions) Option
- func Propagators(propagators ...propagation.TextMapPropagator) Option
- func RawSpanLimits(limits *sdktrace.SpanLimits) Option
- func Resources(res resourcex.ResourceFlag) Option
- func Sampler(sampler sdktrace.Sampler) Option
- func Service(svc *resourcex.Service) Option
- func SpanProcessor(spanProcessor sdktrace.SpanProcessor) Option
- func Writer(writerOptions *WriterOptions) Option
- func Zipkin(zipkinOptions *ZipkinOptions) Option
- type Trace
- type WriterOptions
- type ZipkinOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExporterProvider ¶
type ExporterProvider interface {
Exporter(ctx context.Context) (sdktrace.SpanExporter, error)
}
type GRPCOptions ¶
type GRPCOptions struct { Endpoint string Insecure bool TLSConfig *tls.Config Headers map[string]string Compressor string DialOptions []grpc.DialOption GRPCConn *grpc.ClientConn ReconnectionPeriod time.Duration Retry *otlptracegrpc.RetryConfig Timeout time.Duration ServiceConfig string }
func (*GRPCOptions) Exporter ¶
func (o *GRPCOptions) Exporter(ctx context.Context) (sdktrace.SpanExporter, error)
type HTTPOptions ¶
type HTTPOptions struct { Endpoint string Insecure bool TLSConfig *tls.Config Headers map[string]string Compression otlptracehttp.Compression Retry *otlptracehttp.RetryConfig Timeout time.Duration URLPath string }
func (*HTTPOptions) Exporter ¶
func (o *HTTPOptions) Exporter(ctx context.Context) (sdktrace.SpanExporter, error)
type JaegerOptions ¶
func (*JaegerOptions) Exporter ¶
func (o *JaegerOptions) Exporter(ctx context.Context) (sdktrace.SpanExporter, error)
type Option ¶
type Option func(o *options)
func Attributes ¶
func GRPC ¶
func GRPC(gRPCOptions *GRPCOptions) Option
func HTTP ¶
func HTTP(httpOptions *HTTPOptions) Option
func IDGenerator ¶
func IDGenerator(idGen sdktrace.IDGenerator) Option
func Jaeger ¶
func Jaeger(jaegerOptions *JaegerOptions) Option
func Propagators ¶
func Propagators(propagators ...propagation.TextMapPropagator) Option
func RawSpanLimits ¶
func RawSpanLimits(limits *sdktrace.SpanLimits) Option
func Resources ¶
func Resources(res resourcex.ResourceFlag) Option
func SpanProcessor ¶
func SpanProcessor(spanProcessor sdktrace.SpanProcessor) Option
func Writer ¶
func Writer(writerOptions *WriterOptions) Option
func Zipkin ¶
func Zipkin(zipkinOptions *ZipkinOptions) Option
type Trace ¶
type Trace struct {
// contains filtered or unexported fields
}
func (*Trace) TextMapPropagator ¶
func (trace *Trace) TextMapPropagator() propagation.TextMapPropagator
func (*Trace) TracerProvider ¶
func (trace *Trace) TracerProvider() trace.TracerProvider
type WriterOptions ¶
type WriterOptions struct { // Writer 标准输入或者文件 Writer io.Writer PrettyPrint bool WithoutTimestamps bool }
func (*WriterOptions) Exporter ¶
func (o *WriterOptions) Exporter(ctx context.Context) (sdktrace.SpanExporter, error)
type ZipkinOptions ¶
type ZipkinOptions struct {
URL string
}
func (*ZipkinOptions) Exporter ¶
func (o *ZipkinOptions) Exporter(ctx context.Context) (sdktrace.SpanExporter, error)
Click to show internal directories.
Click to hide internal directories.