Home / Companies / Honeycomb / Blog / Post Details
Content Deep Dive

Ask Miss O11y: Baggage in OTel

Blog post from Honeycomb

Post Details
Company
Date Published
Author
Martin Thwaites
Word Count
1,177
Language
English
Hacker News Points
-
Summary

Miss O11y introduces Martin Thwaites as a new band member at Honeycomb and delves into the concept of "Baggage" in OpenTelemetry (OTel), which is crucial for passing contextual information between spans in distributed systems. Baggage ensures that context values are standardized across platforms and frameworks, allowing applications to read and use them regardless of language, which is vital in massively distributed systems. Although Baggage offers a systemic way to carry data like Account Identification or User IDs across service boundaries, it poses risks if sensitive information is included, as it propagates widely without inherent integrity checks. The text highlights the importance of using Baggage judiciously to avoid performance issues and data leaks, illustrating potential pitfalls with an anecdote where Baggage data inadvertently affected Honeycomb's tracing systems. Proper use of Baggage requires explicitly appending it to span attributes, a process simplified by tools like the BaggageSpanProcessor in Honeycomb's OpenTelemetry libraries, but caution is advised to prevent unintended consequences.