opentracing

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 3 Imported by: 0

README

servicectx + opentracing integration

This package contains utility functions for integration with OpenTracing.

It facilitates the injection of properties into OpenTracing spans and reading them back from span context.

Please note that OpenTracing package is now deprecated in favor of OpenTelemetry.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContextAndSpan added in v0.2.0

func FromContextAndSpan(ctx context.Context, span opentracing.Span) servicectx.Properties

FromContextAndSpan retrieves properties from Go context and from span's context. This is convenient when the properties can be set both in application code via context and from outside world by opentracing. The properties from Go context have a preference over span's context.

func FromSpan

func FromSpan(span opentracing.Span) servicectx.Properties

FromSpan retrieves properties from span

func FromSpanContext

func FromSpanContext(spanCtx opentracing.SpanContext) servicectx.Properties

FromSpanContext retrieves properties from span's context

func InjectIntoSpan

func InjectIntoSpan(span opentracing.Span, props servicectx.Properties)

InjectIntoSpan adds properties into span's baggage

Types

This section is empty.

Jump to

Keyboard shortcuts

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