Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Transaction ¶ added in v0.1.11
Transaction wraps transaction from elasticapm Default tracer and make it concurrency safe
func StartTransaction ¶ added in v0.1.11
func StartTransaction(name, transactionType string, startTime *time.Time) *Transaction
StartTransaction returns a mutex protected elasticapm.Transaction, with optional starting time
func (*Transaction) End ¶ added in v0.1.11
func (t *Transaction) End()
End completes the transaction
func (*Transaction) Recover ¶ added in v0.1.11
func (t *Transaction) Recover()
Recover returns an elasticapm.DefaultTracer.Recover function to be deferred
func (*Transaction) Result ¶ added in v0.1.11
func (t *Transaction) Result(value string)
Result set the result for the transaction
func (*Transaction) SetCustom ¶ added in v0.1.11
func (t *Transaction) SetCustom(key string, value interface{})
SetCustom set custom value for the transaction
func (*Transaction) SetError ¶ added in v0.1.11
func (t *Transaction) SetError(err error)
SetError set and send error fom the transaction
Click to show internal directories.
Click to hide internal directories.