// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

package 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()}
}