You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
aa1894e09e
Updates the baggage implementation to comply with https://www.w3.org/TR/baggage/#limits: - Changed maxMembers from 180 to 64 (the W3C compliance requirement) > The resulting baggage-string contains 64 list-members or less. - Removed maxBytesPerMembers (4096) - this per-member limit was not part of the W3C spec - Added limit checking in extractMultiBaggage for multiple baggage headers: - Checks combined byte size across all headers (max 8192 bytes) - Checks combined member count across all headers (max 64 members) This uses non-deterministic truncation when handling baggage limits.
18 lines
632 B
Go
18 lines
632 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Package global provides the OpenTelemetry global API.
|
|
package global // import "go.opentelemetry.io/otel/internal/global"
|
|
|
|
import (
|
|
"go.opentelemetry.io/otel/internal/errorhandler"
|
|
)
|
|
|
|
// ErrorHandler is an alias for errorhandler.ErrorHandler, kept for backward
|
|
// compatibility with existing callers of internal/global.
|
|
type ErrorHandler = errorhandler.ErrorHandler
|
|
|
|
// ErrDelegator is an alias for errorhandler.ErrDelegator, kept for backward
|
|
// compatibility with existing callers of internal/global.
|
|
type ErrDelegator = errorhandler.ErrDelegator
|