auapmclient

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 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 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

func (*ApmRoundTripper) RoundTrip added in v0.3.0

func (vrt *ApmRoundTripper) RoundTrip(req *http.Request) (res *http.Response, e error)

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