httpcapture

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 8 Imported by: 3

Documentation

Overview

Package httpcapture provides an http.RoundTripper that captures requests and responses.

Index

Constants

View Source
const (
	// RequestSpanName is the name of the span created for each request.
	RequestSpanName = "http.request"
	// RequestEventName is the name of the event created for each request body.
	RequestEventName = "http.request.body"
	// ResponseEventName is the name of the event created for each response body.
	ResponseEventName = "http.response.body"
	// IDSpanName is the name of the span created for each request.
	IDSpanName = "rpc.id"
)

Variables

This section is empty.

Functions

func NewCaptureTransport

func NewCaptureTransport(underlyingTransport http.RoundTripper, handler metrics.Handler) http.RoundTripper

NewCaptureTransport returns a new http.Transport that captures requests and responses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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