package grpctrace
import "go.opentelemetry.io/otel/plugin/grpctrace"
Index ¶
- func Extract(ctx context.Context, metadata *metadata.MD) ([]core.KeyValue, core.SpanContext)
- func Inject(ctx context.Context, metadata *metadata.MD)
Functions ¶
func Extract ¶
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 ¶
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.4.1
- Published
- Mar 31, 2020
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 5 minutes ago –
Tools for package owners.