code: function writeParameters(entry, out) {
      // If headers are in an object, convert them to an array for better
      // display.
      entry = reformatHeaders(entry);
  
      // Use any parameter writer available for this event type.
      const paramsWriter = getParameterWriterForEventType(entry.type);
      const consumedParams = {};
      if (paramsWriter) {
        paramsWriter(entry, out, consumedParams);
      }
  
      // Write any un-consumed parameters.
      for (const k in entry.params) {
        if (consumedParams[k]) {
          continue;
        }
        defaultWriteParameter(k, entry.params[k], out);
      }
    }
docs: Formats the parameters for |entry| and writes them to |out|.
  Certain event types have custom pretty printers. Everything else will
  default to a JSON-like format.