Documentation ¶
Index ¶
Constants ¶
View Source
const ( ExporterTypeGRPC ExporterType = "grpc" ExporterTypeHTTP ExporterType = "http" ExporterTypeStdio ExporterType = "stdout" SamplerTypeAlways SamplerType = "always" SamplerTypeNever SamplerType = "never" SamplerTypeRatioBased SamplerType = "ratio_based" )
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(ctx context.Context, version string, exporter sdktrace.SpanExporter, opts ...sdktrace.TracerProviderOption) (trace.TracerProvider, error)
NewProvider returns an OTLP exporter based tracer.
Types ¶
type Exporter ¶
type Exporter interface { sdktrace.SpanExporter Start(context.Context) error }
func NewConsoleExporter ¶
NewConsoleExporter returns a console exporter.
func NewExporter ¶
func NewGRPCExporter ¶
NewGRPCExporter returns a gRPC exporter.
func NewHTTPExporter ¶
NewHTTPExporter returns a HTTP exporter.
type ExporterType ¶
type ExporterType string
type NoopExporter ¶
type NoopExporter struct{}
func NewNoopExporter ¶
func NewNoopExporter() *NoopExporter
func (NoopExporter) ExportSpans ¶
func (n NoopExporter) ExportSpans(_ context.Context, _ []sdktrace.ReadOnlySpan) error
func (NoopExporter) MarshalLog ¶
func (n NoopExporter) MarshalLog() interface{}
type SamplerType ¶
type SamplerType string
Click to show internal directories.
Click to hide internal directories.