package grpctrace

import "go.opentelemetry.io/otel/plugin/grpctrace"

Index

Functions

func Extract

func Extract(ctx context.Context, metadata *metadata.MD) ([]core.KeyValue, core.SpanContext)

Extract returns the correlation context and span context that another service encoded in the gRPC metadata object with Inject. This function is meant to be used on incoming requests.

func Inject

func Inject(ctx context.Context, metadata *metadata.MD)

Inject injects correlation context and span context into the gRPC metadata object. This function is meant to be used on outgoing requests.

Source Files

grpctrace.go

Version
v0.2.3
Published
Mar 4, 2020
Platform
linux/amd64
Imports
6 packages
Last checked
20 seconds ago

Tools for package owners.