monitoring

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndTransaction

func EndTransaction(transaction interface{})

EndTransaction ends the transaction

func EndTransactionSegment

func EndTransactionSegment(segment interface{})

EndTransactionSegment ends the transaction segment

func GetSQLDBDriverName added in v0.0.2

func GetSQLDBDriverName() string

GetSQLDBDriverName return driver name for monitoring provider

func GetTransactionInContext

func GetTransactionInContext(ctx context.Context) interface{}

GetTransactionInContext returns transaction inside a context

func Initialize

func Initialize()

Initialize loads the Monitoring settings according to the configured environment.

func NoticeError

func NoticeError(transaction interface{}, err error)

NoticeError notices an error in Monitoring provider

func StartTransaction

func StartTransaction(ctx context.Context, name string) (interface{}, context.Context)

StartTransaction start a transaction in context with name

func StartTransactionSegment

func StartTransactionSegment(ctx context.Context, name string, attributes map[string]string) interface{}

StartTransactionSegment start a transaction segment inside opened transaction with name and atributes

func StartWebRequest added in v0.0.2

func StartWebRequest(ctx context.Context, header http.Header, path string, method string) (interface{}, context.Context)

StartWebRequest sets a web request config inside transaction

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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