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

Stop Logging the Request Body!

Blog post from Honeycomb

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

As OpenTelemetry becomes more widely adopted, many users are inclined to add entire request and response bodies as attributes for tracing, a practice that is often inefficient and risky. The article argues against this approach, highlighting the pitfalls such as increased memory usage, potential exposure of sensitive data like Personally Identifiable Information (PII) which could lead to compliance issues, and additional costs associated with data storage and processing. Instead, it recommends a more intentional strategy for observability by selecting the appropriate telemetry signals and adding specific, meaningful attributes to improve system understanding and debugging. This approach minimizes data exposure and storage costs while ensuring that the right team members have access to the necessary telemetry data. By using extension methods and helper classes to extract only relevant information, developers can better manage observability, ensuring clarity and safety in their data practices.