Source File
baggage.go
Belonging Package
go.opentelemetry.io/otel/internal/baggage
// Copyright The OpenTelemetry Authors// SPDX-License-Identifier: Apache-2.0/*Package baggage provides base types and functionality to store and retrievebaggage in Go context. This package exists because the OpenTracing bridge toOpenTelemetry needs to synchronize state whenever baggage for a context ismodified and that context contains an OpenTracing span. If it were not forthis need this package would not need to exist and the`go.opentelemetry.io/otel/baggage` package would be the singular place whereW3C baggage is handled.*/package baggage // import "go.opentelemetry.io/otel/internal/baggage"// List is the collection of baggage members. The W3C allows for duplicates,// but OpenTelemetry does not, therefore, this is represented as a map.type List map[string]Item// Item is the value and metadata properties part of a list-member.type Item struct {Value stringProperties []Property}// Property is a metadata entry for a list-member.type Property struct {Key, Value string// HasValue indicates if a zero-value value means the property does not// have a value or if it was the zero-value.HasValue bool}
![]() |
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. |