anchor.diff:               meta := Metadata=#{time := ObservedTime}}, Config) ->
       Time = opentelemetry:timestamp(),
       {SeverityNumber, SeverityText} = level_to_severity(Level),
  -    Body1 = format_msg(Body, Metadata, Config),
  +    Body1 = case format_msg(Body, Metadata, Config) of
  +                S when ?IS_STRING(S) ->
  +                    %% if body is a string, make it a single line
  +                    T = lists:reverse(
  +                          trim(
  +                            lists:reverse(
  +                              trim(S, false)), true)),
  +                    re:replace(T,",?\r?\n\s*",", ",
  +                               [{return,list}, global, unicode]);
  +                M ->
  +                    M
  +            end,
       Attributes = maps:without([gl, time, report_cb], Metadata),
       Attributes1 = maps:fold(fun(K, V, Acc) ->
                                       [#{key => otel_otlp_common:to_binary(K),
  
positive.code:                         [Report,{C,R,logger:filter_stacktrace(?MODULE,S)}]},
                         Meta,Config)
      end;
  format_msg({report,Report},Meta,Config) ->
      format_msg({report,Report},
                 Meta#{report_cb=>fun logger:format_report/1},
                 Config);
  format_msg(Msg, _Meta, #{depth := Depth,
                           chars_limit := CharsLimit,
                           single_line := Single}) ->
  
negative.code: 
  %% for testing
  -ifdef(TEST).
  -export([to_proto_by_instrumentation_scope/2]).
  -endif.
  
  -include_lib("kernel/include/logger.hrl").
  