sql

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("operation unsupported by the underlying driver")

ErrUnsupported is an error returned when the underlying driver doesn't provide a given function.

Functions

func WrapDriver

func WrapDriver(d driver.Driver, options ...Option) driver.Driver

Wraps the current sql driver to add instrumentation

Types

type Option

type Option func(*instrumentedDriver)

func WithStacktrace added in v0.1.13

func WithStacktrace() Option

Enable span stacktrace

func WithStatementValues added in v0.1.12

func WithStatementValues() Option

Enable statement values instrumentation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL