tracer

package
v0.0.0-...-6d2f78d Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package tracer provides functionality for using Jaeger and OpenTracing for instrumenting HTTP requests to collect metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(serviceName string) (opentracing.Tracer, io.Closer, error)

New returns a new opentracing.Tracer and io.Closer to be used for instrumenting HTTP requests to collect metrics.

Types

type RoundTripperFunc

type RoundTripperFunc func(req *http.Request) (*http.Response, error)

RoundTripperFunc allows functions to satisfy the http.RoundTripper interface.

func RoundTripper

func RoundTripper(jaegerTracer opentracing.Tracer, instanceName string, next http.RoundTripper) RoundTripperFunc

RoundTripper is http.RoundTripper middleware to add Jaeger tracing to all HTTP requests.

func (RoundTripperFunc) RoundTrip

func (rt RoundTripperFunc) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements the http.RoundTripper interface.

Jump to

Keyboard shortcuts

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