README ¶ Migration TraceProvider This implements the (newly added in a fork) OpenCensus Tracer interface using OpenTelemetry. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func NewTracer() octrace.Tracer type Binary func (b Binary) Extract(ctx context.Context, carrier otel.TextMapCarrier) context.Context func (b Binary) Fields() []string func (b Binary) Inject(ctx context.Context, carrier otel.TextMapCarrier) 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 Source Files ¶ View all Source files binary.go tracer.go Click to show internal directories. Click to hide internal directories.