Documentation ¶
Overview ¶
Package trace is for collecting tracing data and adapting with backend tracing systems.
Index ¶
- func NewExporter(config *ExporterConfig, customFunc func() (sdktrace.SpanExporter, error)) (tracerProvider *sdktrace.TracerProvider, ...)
- type DefaultExporter
- type Exporter
- type ExporterConfig
- type Option
- func WithAlwaysMode() Option
- func WithB3Propagator() Option
- func WithEnabled() Option
- func WithEndpoint(endpoint string) Option
- func WithExporter(exporter string) Option
- func WithJaegerExporter() Option
- func WithMode(mode string) Option
- func WithNeverMode() Option
- func WithOtlpGrpcExporter() Option
- func WithOtlpHttpExporter() Option
- func WithPropagator(propagator string) Option
- func WithRatio(ratio float64) Option
- func WithRatioMode() Option
- func WithStdoutExporter() Option
- func WithW3cPropagator() Option
- func WithZipkinExporter() Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExporter ¶
func NewExporter(config *ExporterConfig, customFunc func() (sdktrace.SpanExporter, error)) (tracerProvider *sdktrace.TracerProvider, propagator propagation.TextMapPropagator, err error)
NewExporter is an absolute function with @customFunc to create a spec exporter
Types ¶
type DefaultExporter ¶
type DefaultExporter struct { TracerProvider *sdktrace.TracerProvider Propagator propagation.TextMapPropagator }
func (*DefaultExporter) GetPropagator ¶
func (e *DefaultExporter) GetPropagator() propagation.TextMapPropagator
func (*DefaultExporter) GetTracerProvider ¶
func (e *DefaultExporter) GetTracerProvider() *sdktrace.TracerProvider
type Exporter ¶
type Exporter interface { GetTracerProvider() *sdktrace.TracerProvider GetPropagator() propagation.TextMapPropagator }
type ExporterConfig ¶
type Option ¶
type Option func(*Options)
func WithAlwaysMode ¶
func WithAlwaysMode() Option
func WithEnabled ¶
func WithEnabled() Option
func WithEndpoint ¶
func WithExporter ¶
func WithJaegerExporter ¶
func WithJaegerExporter() Option
func WithNeverMode ¶
func WithNeverMode() Option
func WithOtlpGrpcExporter ¶
func WithOtlpGrpcExporter() Option
func WithOtlpHttpExporter ¶
func WithOtlpHttpExporter() Option
func WithPropagator ¶
func WithRatioMode ¶
func WithRatioMode() Option
func WithStdoutExporter ¶
func WithStdoutExporter() Option
func WithZipkinExporter ¶
func WithZipkinExporter() Option
Click to show internal directories.
Click to hide internal directories.