Versions in this module Expand all Collapse all v0 v0.1.1 Jul 4, 2026 v0.1.0 Jul 4, 2026 Changes in this version + const CreateDBDriverName + const DriverName + func AttributesFromDSN(dsn string) []attribute.KeyValue + func DefaultAttributes(dsn string) []attribute.KeyValue + func Open(dsn string, options ...Option) (*sql.DB, error) + func OpenCreateDB(dsn string, options ...Option) (*sql.DB, error) + func OpenDB(connector driver.Connector, options ...Option) *sql.DB + func OpenDBWithDSN(connector driver.Connector, dsn string, options ...Option) *sql.DB + func OpenWithDriver(driverName, dsn string, options ...Option) (*sql.DB, error) + func Register(options ...Option) (string, error) + func RegisterCreateDB(options ...Option) (string, error) + func RegisterDBStatsMetrics(db *sql.DB, dsn string, options ...Option) (metric.Registration, error) + func RegisterWithDriver(driverName, dsn string, options ...Option) (string, error) + type AttributesGetter = otelsql.AttributesGetter + type InstrumentAttributesGetter = otelsql.InstrumentAttributesGetter + type InstrumentErrorAttributesGetter = otelsql.InstrumentErrorAttributesGetter + type Method = otelsql.Method + type Option = otelsql.Option + func WithAttributes(attributes ...attribute.KeyValue) Option + func WithAttributesGetter(getter AttributesGetter) Option + func WithDefaultAttributes(dsn string) Option + func WithInstrumentAttributesGetter(getter InstrumentAttributesGetter) Option + func WithInstrumentErrorAttributesGetter(getter InstrumentErrorAttributesGetter) Option + func WithMeterProvider(provider metric.MeterProvider) Option + func WithSQLCommenter(enabled bool) Option + func WithSpanNameFormatter(formatter SpanNameFormatter) Option + func WithSpanOptions(options SpanOptions) Option + func WithTracerProvider(provider trace.TracerProvider) Option + type SpanNameFormatter = otelsql.SpanNameFormatter + type SpanOptions = otelsql.SpanOptions