tracing

package
v0.2100.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package tracing complements the opentracing go package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SpanContextFromBinary

func SpanContextFromBinary(scBinary []byte) (opentracing.SpanContext, error)

SpanContextFromBinary unmarshals the given byte array containing the SpanContext in binary format. Returns a new SpanContext instance using the global tracer.

func SpanContextToBinary

func SpanContextToBinary(sc opentracing.SpanContext) ([]byte, error)

SpanContextToBinary marshals the given SpanContext to a binary format using the global tracer. Returns either the in-memory bytes array or an error.

func StartSpanWithContext

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

StartSpanWithContext creates a new span and returns a context containing it. In contrast to opentracing.StartSpanFromContext(), this function does not take existing span from `ctx` as a ChildOfRef.

Types

This section is empty.

Jump to

Keyboard shortcuts

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