Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Address string
Insecure bool
Username string
Password string
Probability float64
ServiceName string
}
Config holds the tracing configuration.
type OTLPProvider ¶ added in v1.10.0
type OTLPProvider struct {
embedded.TracerProvider
// contains filtered or unexported fields
}
OTLPProvider is a trace provider which exports traces to OTLP.
func NewOTLPProvider ¶ added in v1.10.0
func NewOTLPProvider(ctx context.Context, cfg Config) (*OTLPProvider, error)
NewOTLPProvider creates a new OTLPProvider.
func (*OTLPProvider) Stop ¶ added in v1.10.0
func (p *OTLPProvider) Stop(ctx context.Context) error
Stop stops the provider once all traces have been uploaded.
func (*OTLPProvider) Tracer ¶ added in v1.10.0
func (p *OTLPProvider) Tracer(name string, opts ...trace.TracerOption) trace.Tracer
Tracer creates a new tracer with the given name and options.
Click to show internal directories.
Click to hide internal directories.