httptrace

package
v1.20220411.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package httptrace provides helpers for integrating http servers into distributed tracing results.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHTTPSpan

func StartHTTPSpan(ctx context.Context, tracer opentracing.Tracer, req *http.Request, resource string, startTime time.Time, extra ...opentracing.StartSpanOption) (opentracing.Span, *http.Request)

StartHTTPSpan opens a span and creates a new request with a modified context, based on the span that was opened.

func Tracer

func Tracer(tracer opentracing.Tracer) webutil.HTTPTracer

Tracer returns an HTTP tracer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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