You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Body serialization should respect max_nesting_depth config
- Add maxDepth parameter to Body constructor
- Update Body::serialize() to use maxDepth when calling serializeForRollbar
- Update DataBuilder to pass maxNestingDepth config to Body constructor
- Add test to verify deep nesting is properly truncated
This fixes memory exhaustion issues when logging errors with complex
nested data structures (like Drupal form arrays) by respecting the
configured max_nesting_depth limit during Body serialization.
Previously, Body::serialize() always used unlimited depth (-1) via
serializeForRollbarInternal(), ignoring the max_nesting_depth config.
Fixes memory issues similar to those described in issue reports about
Rollbar consuming excessive memory with deeply nested context data.
0 commit comments