migration

package
v0.0.0-...-1b1f522 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

README

Migration TraceProvider

This implements the (newly added in a fork) OpenCensus Tracer interface using OpenTelemetry.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTracer

func NewTracer() octrace.Tracer

NewTracer returns an implementation of the OpenCensus Tracer interface which uses OpenTelemetry APIs. Using this implementation of Tracer "upgrades" libraries that use OpenCensus to OpenTelemetry to facilitate a migration.

Types

type Binary

type Binary struct{}

Binary is an OpenTelemetry implementation of the OpenCensus grpc binary format. Needed because of https://github.com/open-telemetry/opentelemetry-specification/issues/437

func (Binary) Extract

func (b Binary) Extract(ctx context.Context, carrier otel.TextMapCarrier) context.Context

Extract extracts the SpanContext from the TextMapCarrier

func (Binary) Fields

func (b Binary) Fields() []string

Fields returns the fields that this propagator modifies.

func (Binary) Inject

func (b Binary) Inject(ctx context.Context, carrier otel.TextMapCarrier)

Inject injects context into the TextMapCarrier

Jump to

Keyboard shortcuts

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