otel

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*config)

Option is used to configure the client.

func WithServiceName

func WithServiceName(serviceName string) Option

WithServiceName sets the service name.

func WithTracerProvider

func WithTracerProvider(provider oteltrace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer. If none is specified, the global provider is used.

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func NewPlugin

func NewPlugin(opts ...Option) *Plugin

NewPlugin initialize a new gorm.DB plugin that traces queries You may pass optional Options to the function

func (*Plugin) Initialize

func (op *Plugin) Initialize(db *gorm.DB) error

func (*Plugin) Name

func (op *Plugin) Name() string

Jump to

Keyboard shortcuts

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