opentracing

package module
v0.0.0-...-7ee8e83 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSpan

func ContextWithSpan(ctx context.Context, span otracing.Span) context.Context

ContextWithSpan - Returns Context with Span

func CreateChildSpanFromContext

func CreateChildSpanFromContext(ctx context.Context, operation string) otracing.Span

CreateChildSpanFromContext - Creates Child Span from Context Extracts parent span from context

func GlobalTracer

func GlobalTracer() otracing.Tracer

GlobalTracer - Returns Instance of Global Tracer

func Init

func Init(ctx context.Context, serviceName string) error

Init - Initialize Global Tracing

func NewTracer

func NewTracer(ctx context.Context, serviceName string) (otracing.Tracer, io.Closer, error)

NewTracer - Creates New Tracer

func SpanFromContext

func SpanFromContext(ctx context.Context) otracing.Span

SpanFromContext - Returns Span from Context

func StartSpanFromContext

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

StartSpanFromContext - Starts Span from Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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