Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MonitorType string DatadogDebugMode bool )
Functions ¶
func ContextWithTransaction ¶
func ContextWithTransaction(ctx context.Context, tx Transaction) context.Context
Types ¶
type Monitor ¶
type Monitor interface { Start(context.Context) error StartTransaction(ctx context.Context, name string) (Transaction, context.Context) }
func ContextMonitor ¶
func NewDatadogMonitor ¶
func NewDatadogMonitor() Monitor
func NewNullMonitor ¶
func NewNullMonitor() Monitor
type Transaction ¶
type Transaction interface { End() AddAttribute(key string, value interface{}) AddAttributes(attrs map[string]interface{}) StartTransaction(ctx context.Context, name string) (Transaction, context.Context) NoticeError(err error) }
func ContextTransaction ¶
func ContextTransaction(ctx context.Context) Transaction
func NewDatadogTransaction ¶
func StartTransaction ¶
Click to show internal directories.
Click to hide internal directories.