auapmclient

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTraceHeadersRequestManipulator

func AddTraceHeadersRequestManipulator(ctx context.Context, r *http.Request)

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

Types

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL