package
1.33.4
Repository: https://github.com/koddidev/dd-trace-go.git
Documentation: pkg.go.dev

# Functions

ContextFromDB returns any context previously attached to db using WithContext, otherwise returning context.Background.
Open opens a new (traced) database connection.
WithAnalytics enables Trace Analytics for all started spans.
WithAnalyticsRate sets the sampling rate for Trace Analytics events correlated to started spans.
WithCallbacks registers callbacks to the gorm.DB for tracing.
WithContext attaches the specified context to the given db.
WithCustomTag will cause the given tagFn to be evaluated after executing a query and attach the result to the span tagged by the key.
WithErrorCheck specifies a function fn which determines whether the passed error should be marked as an error.
WithServiceName sets the given service name when registering a driver, or opening a database connection.

# Type aliases

Option represents an option that can be passed to Register, Open or OpenDB.