logtron icon indicating copy to clipboard operation
logtron copied to clipboard

Reduce util.inspect depth or make configurable to upper bound serialization expense

Open Raynos opened this issue 8 years ago • 0 comments

Currently when we fail to serialize a record we will inspect it to a depth of 4 ( https://github.com/uber/logtron/blob/master/transforms/safe-serialize-meta.js#L34 ).

Dependending on the data structure, a depth of 4 can be very expensive, we should probably change it to a depth of 1.

Raynos avatar Sep 09 '16 21:09 Raynos