apm

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apm

type Apm struct {
	Logger logger.Logger
}

func NewApm

func NewApm() Apm

func (Apm) ConfigureOnHttpClient

func (apm Apm) ConfigureOnHttpClient(client *http.Client)

func (Apm) ConfigureOnRouter

func (apm Apm) ConfigureOnRouter(router *chi.Mux)

func (Apm) ConfigureOnSQLClient

func (apm Apm) ConfigureOnSQLClient(driverName string, driver driver.Driver, dataSourceName string, opts ...sqltrace.Option) (*sql.DB, error)

func (Apm) SpanFromContext

func (apm Apm) SpanFromContext(ctx context.Context) (ddtrace.Span, bool)

func (Apm) StartSpanFromContext

func (apm Apm) StartSpanFromContext(ctx context.Context, name string) (ddtrace.Span, context.Context)

Jump to

Keyboard shortcuts

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