Do not pretty-print 'tojson()' output by default

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible
    • QE 2025-01-20, QE 2025-02-03
    • 2
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Pretty-printed (multi-line + indentation) JSON is easier to read, however, we should not do it in our mostly-structured logs, because:

      1) it makes it harder to parse with automatic tools
      2) multiple lines can intertwine with other process output making it harder to read or extract manually
      3) pretty-printing can be done with additional tools, for instance, Parsley now supports pretty-printing JSON in 'bookmarked' lines in 'resmoke' mode

      This change must be activated by an opt-in parameter (see SERVER-97956) in order not to break the upstream dependencies (e.g., build-baron tools).

            Assignee:
            Daniel Tabacaru
            Reporter:
            Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: