mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-27 06:06:38 +00:00
c097745c38
Bumps [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc](https://github.com/open-telemetry/opentelemetry-go) from 1.24.0 to 1.25.0. - [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.24.0...v1.25.0) --- updated-dependencies: - dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
33 lines
1.1 KiB
Go
33 lines
1.1 KiB
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
/*
|
|
Package baggage provides base types and functionality to store and retrieve
|
|
baggage in Go context. This package exists because the OpenTracing bridge to
|
|
OpenTelemetry needs to synchronize state whenever baggage for a context is
|
|
modified and that context contains an OpenTracing span. If it were not for
|
|
this need this package would not need to exist and the
|
|
`go.opentelemetry.io/otel/baggage` package would be the singular place where
|
|
W3C 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 string
|
|
Properties []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
|
|
}
|