Documentation ¶
Index ¶
- Constants
- func FastContextWithSpan(ctx *fasthttp.RequestCtx, span opentracing.Span)
- func FastHTTPTraceWrapper(tracer opentracing.Tracer, h fasthttp.RequestHandler) fasthttp.RequestHandler
- func InitTracer(serviceName string, logger *zap.Logger) (tracer opentracing.Tracer, _ error)
- func StartSpanFromContext(ctx context.Context, operationName string, opts ...opentracing.StartSpanOption) (opentracing.Span, error)
- func StartSpanFromFastContext(ctx *fasthttp.RequestCtx, operationName string, ...) (opentracing.Span, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.