mysql

package
v0.0.0-...-0eaf191 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDatabase

func WithDatabase(database string) mySqlOptFunc

Configure MySQL database

func WithPort

func WithPort(port string) mySqlOptFunc

Configure MySQL port

func WithServer

func WithServer(server string) mySqlOptFunc

Configure MySQL server

func WithTable

func WithTable(table string) mySqlOptFunc

Configure MySQL table

func WithTracerName

func WithTracerName(tracerName string) mySqlOptFunc

Configure tracer name

func WithUsername

func WithUsername(username string) mySqlOptFunc

Configure MySQL username

Types

type MySqlEnricher

type MySqlEnricher struct {
	Opts *mySqlOpts
}

func NewMysqlEnricher

func NewMysqlEnricher(
	optFuncs ...mySqlOptFunc,
) *MySqlEnricher

Create a MySQL database instance

func (*MySqlEnricher) CreateSpan

func (e *MySqlEnricher) CreateSpan(
	ctx context.Context,
	parentSpan trace.Span,
	operation string,
	statement string,
) (
	context.Context,
	trace.Span,
)

Jump to

Keyboard shortcuts

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