Versions in this module Expand all Collapse all v1 v1.0.2 Mar 22, 2024 v1.0.1 Nov 9, 2023 Changes in this version + var DefaultExporterAddr = "localhost:12520" + var DefaultLogLevel = apilog.InfoLevel + var DefaultTenantID = "default" + var MaxSendMessageSize = 4194304 + func AsyncSetup(addr string, tenantID string, sampler sdktrace.Sampler) error + func GlobalIDGenerator() sdktrace.IDGenerator + func GlobalTracer() apitrace.Tracer + func SetGlobalIDGenerator(gen sdktrace.IDGenerator) + func Setup(addr string, opts ...SetupOption) error + func Shutdown(ctx context.Context) error + func Start(ctx context.Context, spanName string, opts ...apitrace.SpanStartOption) (context.Context, apitrace.Span) + func Version() string + func WithSpan(ctx context.Context, spanName string, fn func(ctx context.Context) error, ...) error + type SetupOption func(*setupOptions) + func WithBatchSpanProcessorOption(opts ...trace.BatchSpanProcessorOption) SetupOption + func WithDeferredSampler(deferredSampler trace.DeferredSampler) SetupOption + func WithGRPCDialOption(opts ...grpc.DialOption) SetupOption + func WithHTTPEnabled(enabled bool) SetupOption + func WithIDGenerator(idGenerator sdktrace.IDGenerator) SetupOption + func WithLabels(opts ...attribute.KeyValue) SetupOption + func WithLevelEnable(level apilog.Level) SetupOption + func WithLogEnabled(enabled bool) SetupOption + func WithMetricEnabled(enabled bool) SetupOption + func WithResource(rs *resource.Resource) SetupOption + func WithSampler(sampler sdktrace.Sampler) SetupOption + func WithServerOwner(owner string) SetupOption + func WithServiceName(serviceName string) SetupOption + func WithServiceNamespace(namespace string) SetupOption + func WithTenantID(tenantID string) SetupOption + func WithZPageSpanProcessor(enable bool) SetupOption