otelsql

package module
v0.0.0-...-12383ab Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 9 Imported by: 0

README

otelsql

Proof of concept OpenTelemtetry support for Go's database/sql

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(drivername string, dri driver.Driver, opts ...Option) string

Types

type Option

type Option func(*options)

Option specifies instrumentation configuration options.

func WithTraceAttributes

func WithTraceAttributes(traceAttributes []attribute.KeyValue) Option

WithTraceAttributes configures the interceptor to attach the default KeyValues.

func WithTraceProvider

func WithTraceProvider(traceProvider trace.TracerProvider) Option

WithTraceProvider configures the interceptor with the specified trace provider.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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