Documentation
¶
Overview ¶
Package customapm provides tracing and error-reporting helpers for Elastic APM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ender ¶
type Ender struct {
// contains filtered or unexported fields
}
Ender owns a traced span and, when Trace created it, its transaction.
func Trace ¶
func Trace( ctx context.Context, what, nameOf string, operation status.Status, l sypl.ISypl, metric *expvar.Int, ) (context.Context, Ender)
Trace starts a span in the transaction from ctx, creating a transaction when necessary. It returns the tracing context and an Ender that the caller must end. metric is incremented when non-nil.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger adapts the application logger to the Elastic APM logger interface.
Click to show internal directories.
Click to hide internal directories.