# Functions
Open returns connection to a DB using the traced version of the given driver.
OpenDB returns connection to a DB using the traced version of the given driver.
Register tells the sql integration package about the driver that we will be tracing.
WithAnalytics enables Trace Analytics for all started spans.
WithAnalyticsRate sets the sampling rate for Trace Analytics events correlated to started spans.
WithChildSpansOnly causes spans to be created only when there is an existing parent span in the Context.
WithCustomTag will attach the value to the span tagged by the key.
WithDBMPropagation enables injection of tags as sql comments on traced queries.
WithDSN allows the data source name (DSN) to be provided when using OpenDB and a driver.Connector.
WithErrorCheck specifies a function fn which determines whether the passed error should be marked as an error.
WithIgnoreQueryTypes specifies the query types for which spans should not be created.
WithServiceName sets the given service name when registering a driver, or opening a database connection.
WithSpanTags creates a new context containing the given set of tags.
WithSQLCommentInjection enables injection of tags as sql comments on traced queries.
# Constants
QueryTypeBegin is used for Begin traces.
QueryTypeClose is used for Close traces.
QueryTypeCommit is used for Commit traces.
QueryTypeConnect is used for Connect traces.
QueryTypeExec is used for Exec traces.
QueryTypePing is used for Ping traces.
QueryTypePrepare is used for Prepare traces.
QueryTypeQuery is used for Query traces.
QueryTypeRollback is used for Rollback traces.
# Structs
TracedConn holds a traced connection with tracing parameters.
# Type aliases
Option represents an option that can be passed to Register, Open or OpenDB.
QueryType represents the different available traced db queries.
RegisterOption has been deprecated in favor of Option.