instrumenthttp

package
v0.0.0-...-f67da96 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartOutgoingGroupSegment

func StartOutgoingGroupSegment(
	ctx context.Context,
	extSvcInfo monitoring.ExternalServiceInfo,
	serviceName,
	reqMethod,
	reqURL string,
) (context.Context, func(error))

StartOutgoingGroupSegment starts an outgoing HTTP client unary request group segment to group all client calls including retries. The return is the `End` func to close the segment

func StartOutgoingSegment

func StartOutgoingSegment(
	ctx context.Context,
	extSvcInfo monitoring.ExternalServiceInfo,
	serviceName string,
	r *http.Request,
) (context.Context, func(int, error))

StartOutgoingSegment starts a outgoing HTTP client segment. The return is the `End` func to close the segment

Types

type RequestMetadata

type RequestMetadata struct {
	Method    string
	Endpoint  string
	BodyToLog []byte
}

func StartIncomingRequest

func StartIncomingRequest(m *monitoring.Monitor, r *http.Request) (context.Context, RequestMetadata, func(int, error))

Jump to

Keyboard shortcuts

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