Ray's Knowledge Base
Unlock

Parse trace records with RecordParser to preserve large integers

PitfallVerified 30 Sep 2026Holds project: dftracer-utils
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

A trace line containing an integer wider than the parser's supported integer range disappears during decoding.

Cause#

A plain simdjson dom::parser cannot handle those values under the configuration used by the affected path.

Fix#

Use the shared RecordParser from include/dftracer/utils/json/record_parser.h, which enables big integers. Handle BIGINT when switching on element type. Keep values above INT64_MAX exact as uint64 when representable; do not convert them to double.

Evidence#

Observer inbox 5f2574cd39 records whole-line loss with plain DOM parsing and the shared-parser fix. It does not include a standalone reproducer or exact error text.

Also found by searching

  • trace line with integer larger than INT64_MAX silently disappears when decoded with simdjson dom::parser
  • some trace records vanish during parsing when they hold huge numbers
  • how do I parse trace JSON lines without losing big integer values
  • simdjson BIGINT element type, uint64 above int64 max, shared RecordParser big integers enabled
  • trace line with huge integer silently disappears while decoding with simdjson dom::parser
  • big integer above INT64_MAX in trace record dropped, how to parse exactly
  • how do I keep uint64 values exact and not converted to double when parsing JSON in dftracer-utils
  • simdjson BIGINT element type handling, RecordParser record_parser.h