-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace and deprecate
baggagetrace
(#5824)
Resolve #5808 - Move current version of `go.opentelemetry.io/contrib/processors/baggage/baggagetrace` to `go.opentelemetry.io/contrib/processors/baggagecopy` - Rename `baggagecopy.New` to `baggagecopy.NewSpanProcessor` to allow for future processors - Restore `go.opentelemetry.io/contrib/processors/baggage/baggagetrace` to its last released version (v0.0.1) - This excludes dependency upgrades - Deprecate `go.opentelemetry.io/contrib/processors/baggage/baggagetrace`
- Loading branch information
Showing
12 changed files
with
360 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,7 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// Package baggagetrace is an OpenTelemetry [Span Processor] that reads key/values | ||
// stored in [Baggage] in the starting span's parent context and adds them as | ||
// attributes to the span. | ||
// Package baggagetrace implements a baggage span processor. | ||
// | ||
// Keys and values added to Baggage will appear on all subsequent child spans for | ||
// a trace within this service and will be propagated to external services via | ||
// propagation headers. | ||
// If the external services also have a Baggage span processor, the keys and | ||
// values will appear in those child spans as well. | ||
// | ||
// Do not put sensitive information in Baggage. | ||
// | ||
// # Usage | ||
// | ||
// Add the span processor when configuring the tracer provider. | ||
// | ||
// The convenience function [AllowAllBaggageKeys] is provided to | ||
// allow all baggage keys to be copied to the span. Alternatively, you can | ||
// provide a custom baggage key predicate to select which baggage keys you want | ||
// to copy. | ||
// | ||
// [Span Processor]: https://opentelemetry.io/docs/specs/otel/trace/sdk/#span-processor | ||
// [Baggage]: https://opentelemetry.io/docs/specs/otel/api/baggage | ||
// Deprecated: Use go.opentelemetry.io/contrib/processors/baggagecopy instead. | ||
package baggagetrace // import "go.opentelemetry.io/contrib/processors/baggage/baggagetrace" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// Package baggagecopy is an OpenTelemetry [Span Processor] that reads key/values | ||
// stored in [Baggage] in the starting span's parent context and adds them as | ||
// attributes to the span. | ||
// | ||
// Keys and values added to Baggage will appear on all subsequent child spans for | ||
// a trace within this service and will be propagated to external services via | ||
// propagation headers. | ||
// If the external services also have a Baggage span processor, the keys and | ||
// values will appear in those child spans as well. | ||
// | ||
// Do not put sensitive information in Baggage. | ||
// | ||
// # Usage | ||
// | ||
// Add the span processor when configuring the tracer provider. | ||
// | ||
// The convenience function [AllowAllBaggageKeys] is provided to | ||
// allow all baggage keys to be copied to the span. Alternatively, you can | ||
// provide a custom baggage key predicate to select which baggage keys you want | ||
// to copy. | ||
// | ||
// [Span Processor]: https://opentelemetry.io/docs/specs/otel/trace/sdk/#span-processor | ||
// [Baggage]: https://opentelemetry.io/docs/specs/otel/api/baggage | ||
package baggagecopy // import "go.opentelemetry.io/contrib/processors/baggagecopy" |
Oops, something went wrong.