Versions in this module Expand all Collapse all v0 v0.0.2 Oct 24, 2025 v0.0.1 Oct 22, 2025 Changes in this version + type CacheTracing struct + func NewCacheTracing(tracer trace.Tracer) *CacheTracing + func (c *CacheTracing) RecordDelete(ctx context.Context, key string, duration time.Duration, err error) + func (c *CacheTracing) RecordError(span trace.Span, err error) + func (c *CacheTracing) RecordGet(ctx context.Context, key string, hit bool, duration time.Duration, err error) + func (c *CacheTracing) RecordHit(span trace.Span, hit bool) + func (c *CacheTracing) RecordSet(ctx context.Context, key string, duration time.Duration, err error) + func (c *CacheTracing) SetItemSize(span trace.Span, size int64) + func (c *CacheTracing) StartSpan(ctx context.Context, operation, key string) (context.Context, trace.Span) + type DBTracing struct + func NewDBTracing(tracer trace.Tracer) *DBTracing + func (d *DBTracing) RecordError(span trace.Span, err error) + func (d *DBTracing) RecordQuery(ctx context.Context, operation string, table string, duration time.Duration, ...) + func (d *DBTracing) SetRowsAffected(span trace.Span, rows int64) + func (d *DBTracing) StartSpan(ctx context.Context, operation, table string) (context.Context, trace.Span) + type HTTPTracing struct + func NewHTTPTracing(tracer trace.Tracer) *HTTPTracing + func (h *HTTPTracing) Middleware() func(http.Handler) http.Handler + func (h *HTTPTracing) RecordRequest(ctx context.Context, method string, path string, statusCode int, ...) (context.Context, trace.Span)