http

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 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) (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) error

InjectHTTP is used to inject HTTP span

Types

This section is empty.

Jump to

Keyboard shortcuts

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