gtracing

package
v0.0.0-...-385403c Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CtxSpanFieldName = "_trspawn"
)

Variables

This section is empty.

Functions

func FastContextWithSpan

func FastContextWithSpan(ctx *fasthttp.RequestCtx, span opentracing.Span)

FastContextWithSpan extension for fasthttp

func FastHTTPTraceWrapper

func FastHTTPTraceWrapper(tracer opentracing.Tracer, h fasthttp.RequestHandler) fasthttp.RequestHandler

FastHTTPTraceWrapper must be the first in the chain of wrappers if we wan't to test them too

func InitTracer

func InitTracer(serviceName string, logger *zap.Logger) (tracer opentracing.Tracer, _ error)

InitTracer object

func StartSpanFromContext

func StartSpanFromContext(ctx context.Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, error)

StartSpanFromContext same as standart but creates only from parent span

func StartSpanFromFastContext

func StartSpanFromFastContext(ctx *fasthttp.RequestCtx, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, error)

StartSpanFromFastContext extension for fasthttp

Types

This section is empty.

Jump to

Keyboard shortcuts

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