monitoring

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndTransaction

func EndTransaction(transaction any)

EndTransaction ends the transaction

func EndTransactionSegment

func EndTransactionSegment(segment any)

EndTransactionSegment ends the transaction segment

func GetSQLDBDriverName

func GetSQLDBDriverName() string

GetSQLDBDriverName return driver name for monitoring provider

func GetTransactionInContext

func GetTransactionInContext(ctx context.Context) any

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 any, err error)

NoticeError notices an error in Monitoring provider

func StartTransaction

func StartTransaction(ctx context.Context, name string) (any, context.Context)

StartTransaction start a transaction in context with name

func StartTransactionSegment

func StartTransactionSegment(ctx context.Context, name string, attributes map[string]string) any

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

func StartWebRequest

func StartWebRequest(ctx context.Context, header http.Header, path string, method string) (any, 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