Documentation ¶
Index ¶
- Variables
- func DefaultBodyCapturerFromContext(ctx context.Context) interface{}
- func DefaultContextWithBodyCapturer(ctx context.Context, bc interface{}) context.Context
- func DefaultContextWithSpan(ctx context.Context, span interface{}) context.Context
- func DefaultContextWithTransaction(ctx context.Context, tx interface{}) context.Context
- func DefaultSpanFromContext(ctx context.Context) interface{}
- func DefaultTransactionFromContext(ctx context.Context) interface{}
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ContextWithSpan takes a context and span and returns a new context // from which the span can be extracted using SpanFromContext. // // ContextWithSpan is used by apm.ContextWithSpan. It is a // variable to allow other packages, such as atot, to replace it // at package init time. ContextWithSpan = DefaultContextWithSpan // ContextWithTransaction takes a context and transaction and returns // a new context from which the transaction can be extracted using // TransactionFromContext. // // ContextWithTransaction is used by apm.ContextWithTransaction. // It is a variable to allow other packages, such as atot, to replace // it at package init time. ContextWithTransaction = DefaultContextWithTransaction // ContextWithBodyCapturer takes a context and body capturer and returns // a new context from which the body capturer can be extracted using // BodyCapturerFromContext. // // ContextWithBodyCapturer is used by apm.ContextWithBodyCapturer. // It is a variable to allow other packages, such as atot, to replace // it at package init time. ContextWithBodyCapturer = DefaultContextWithBodyCapturer // SpanFromContext returns a span included in the context using // ContextWithSpan. // // SpanFromContext is used by apm.SpanFromContext. It is a // variable to allow other packages, such as atot, to replace it // at package init time. SpanFromContext = DefaultSpanFromContext // TransactionFromContext returns a transaction included in the context // using ContextWithTransaction. // // TransactionFromContext is used by apm.TransactionFromContext. // It is a variable to allow other packages, such as atot, to replace // it at package init time. TransactionFromContext = DefaultTransactionFromContext // BodyCapturerFromContext returns a body capturer included in the context // using ContextWithBodyCapturer. // // BodyCapturerFromContext is used by apm.BodyCapturerFromContext. // It is a variable to allow other packages, such as atot, to replace // it at package init time. BodyCapturerFromContext = DefaultBodyCapturerFromContext )
Functions ¶
func DefaultBodyCapturerFromContext ¶
DefaultBodyCapturerFromContext is the default value for BodyCapturerFromContext.
func DefaultContextWithBodyCapturer ¶
DefaultContextWithBodyCapturer is the default value for ContextWithBodyCapturer.
func DefaultContextWithSpan ¶
DefaultContextWithSpan is the default value for ContextWithSpan.
func DefaultContextWithTransaction ¶
DefaultContextWithTransaction is the default value for ContextWithTransaction.
func DefaultSpanFromContext ¶
DefaultSpanFromContext is the default value for SpanFromContext.
func DefaultTransactionFromContext ¶
DefaultTransactionFromContext is the default value for TransactionFromContext.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.