open-telemetry / opentelemetry-java

OpenTelemetry Java SDK
https://opentelemetry.io
Apache License 2.0
1.98k stars 821 forks source link

Have W3C Baggage size limit implemented yet? #4576

Open wdengw opened 2 years ago

wdengw commented 2 years ago

Is your feature request related to a problem? Please describe. W3C Baggage (https://www.w3.org/TR/baggage/) section 3.2.2 specified baggage size limit:

"A platform MUST propagate all list-members including any list-members added by the platform if the resulting baggage-string would be 8192 bytes or less. If the resulting baggage-string would be greater than 8192 bytes, some list-members MAY be dropped until the resulting baggage-string is 8192 characters or less."

Describe the solution you'd like Does the current Baggage implementation implemented this baggage limit requirement?

Describe alternatives you've considered N/A

Additional context None

jkwatson commented 2 years ago

Given that it's a MAY requirement, we have not implemented it at this point.