Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTraceHeadersRequestManipulator ¶
AddTraceHeadersRequestManipulator is a header manipulator that adds the apm specific trace headers.
Does nothing if there is no transaction in the context. For information about the headers and distributed tracing, see https://www.elastic.co/guide/en/apm/guide/8.7/distributed-tracing.html
func New ¶
func New(wrapped aurestclientapi.Client) aurestclientapi.Client
Types ¶
type ApmRoundTripper ¶ added in v0.3.0
type ApmRoundTripper struct {
// contains filtered or unexported fields
}
func NewApmRoundTripper ¶ added in v0.3.0
func NewApmRoundTripper(wrapped http.RoundTripper) *ApmRoundTripper
type RequestTracingImpl ¶
type RequestTracingImpl struct {
Wrapped aurestclientapi.Client
}
func (*RequestTracingImpl) Perform ¶
func (c *RequestTracingImpl) Perform(ctx context.Context, method string, requestUrl string, requestBody interface{}, response *aurestclientapi.ParsedResponse) error
Perform creates a new APM exit span before calling the wrapped perform and closes it after the wrapped method returns.
Does nothing if there is no transaction in the context. For a definition of spans, see https://www.elastic.co/guide/en/apm/guide/current/data-model-spans.html
Click to show internal directories.
Click to hide internal directories.