http

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTracerNil = errors.New("Tracer is nil")

Functions

func ExtractHTTP

func ExtractHTTP(ctx context.Context, req *http.Request, logID string) (context.Context, opentracing.Span, string)

ExtractHTTP is used to extract span context by HTTP middleware

func InjectHTTP

func InjectHTTP(ctx context.Context, req *http.Request, logID string) error

InjectHTTP is used to inject HTTP span

func SetHTTPLog

func SetHTTPLog(span opentracing.Span, req, resp string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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