instrumentation

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 7 Imported by: 3

Documentation

Overview

Package instrumentation provides a set of custom instruments for different providers.

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"
)

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. TODO: add tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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