Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TraceHeader ¶ added in v0.29.0
TraceHeader defines structure for distributed tracing headers
type Transaction ¶ added in v0.1.11
type Transaction struct { sync.Mutex Tx *apm.Transaction // contains filtered or unexported fields }
Transaction wraps transaction from apm Default tracer and make it concurrency safe
func StartTransaction ¶ added in v0.1.11
func StartTransaction(name, transactionType string, startTime *time.Time, parentHeader *TraceHeader) (tx *Transaction)
StartTransaction returns a mutex protected apm.Transaction with optional starting time.
func (*Transaction) End ¶ added in v0.1.11
func (t *Transaction) End()
End completes the transaction
func (*Transaction) GetTraceContext ¶ added in v0.29.0
func (t *Transaction) GetTraceContext() (th *TraceHeader)
GetTraceContext gets info for distributed transaction
func (*Transaction) Recover ¶ added in v0.1.11
func (t *Transaction) Recover()
Recover returns an apm.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 string)
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
Click to show internal directories.
Click to hide internal directories.