tracing

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// error keys
	KeyErrorMessage        = "err_msg"
	KeyContextErrorMessage = "ctx_err_msg"
)

Variables

This section is empty.

Functions

func InjectTraceID

func InjectTraceID(ctx opentracing.SpanContext, header http.Header)

func Middleware

func Middleware(ctx *fiber.Ctx) error

func SetIfCtxErr

func SetIfCtxErr(span opentracing.Span, ctx context.Context)

func SetIfErr

func SetIfErr(span opentracing.Span, err error)

func StartDBSpanWithParent

func StartDBSpanWithParent(parent opentracing.SpanContext, operationName, dbInstance, dbType, dbStatement string) opentracing.Span

StartDBSpanWithParent - start a DB operation span

func StartSpan

func StartSpan(operationName, method, path string) opentracing.Span

StartSpan will start a new span with no parent span.

func StartSpanWithParent

func StartSpanWithParent(parent opentracing.SpanContext, operationName, method, path string) opentracing.Span

StartSpanWithParent will start a new span with a parent span. example:

span:= StartSpanWithParent(c.Get("tracing-context"),

Types

This section is empty.

Jump to

Keyboard shortcuts

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