Source File
context.go
Belonging Package
go.opentelemetry.io/otel/baggage
// Copyright The OpenTelemetry Authors// SPDX-License-Identifier: Apache-2.0package baggage // import "go.opentelemetry.io/otel/baggage"import ()// ContextWithBaggage returns a copy of parent with baggage.func ( context.Context, Baggage) context.Context {// Delegate so any hooks for the OpenTracing bridge are handled.return baggage.ContextWithList(, .list)}// ContextWithoutBaggage returns a copy of parent with no baggage.func ( context.Context) context.Context {// Delegate so any hooks for the OpenTracing bridge are handled.return baggage.ContextWithList(, nil)}// FromContext returns the baggage contained in ctx.func ( context.Context) Baggage {// Delegate so any hooks for the OpenTracing bridge are handled.return Baggage{list: baggage.ListFromContext()}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |