Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + const TracerName + var AttrBranchCount = attribute.Key("codesearch.branch.count") + var AttrBranches = attribute.Key("codesearch.branches") + var AttrConnectionID = attribute.Key("codesearch.connection.id") + var AttrHostType = attribute.Key("codesearch.host.type") + var AttrJobID = attribute.Key("codesearch.job.id") + var AttrJobType = attribute.Key("codesearch.job.type") + var AttrRepoID = attribute.Key("codesearch.repo.id") + var AttrRepoName = attribute.Key("codesearch.repo.name") + var AttrResultCount = attribute.Key("codesearch.search.result_count") + var AttrSearchQuery = attribute.Key("codesearch.search.query") + var AttrSearchType = attribute.Key("codesearch.search.type") + func AddEvent(ctx context.Context, name string, attrs ...attribute.KeyValue) + func HTTPMiddleware(next http.Handler) http.Handler + func RecordError(ctx context.Context, err error, attrs ...attribute.KeyValue) + func SetAttributes(ctx context.Context, attrs ...attribute.KeyValue) + func SetOK(ctx context.Context) + func SpanFromContext(ctx context.Context) trace.Span + func StartSpan(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span) + func Tracer() trace.Tracer + type Config struct + Enabled bool + Endpoint string + Environment string + Headers map[string]string + Insecure bool + Protocol string + SampleRate float64 + ServiceName string + ServiceVersion string + func ConfigFromEnv() *Config + func DefaultConfig() *Config + type Provider struct + func InitTracing(ctx context.Context, cfg *Config, logger *zap.Logger) (*Provider, error) + func (p *Provider) Shutdown(ctx context.Context) error