anchor.diff:  to_status(_) ->
       #{}.
   
  +-spec to_events([opentelemetry:events()]) -> [opentelemetry_exporter_trace_service_pb:event()].
   to_events(Events) ->
       to_events(Events, []).
   
  
positive.code: to_attributes([_ | Rest], Acc) ->
      to_attributes(Rest, Acc).
  
  to_status(#status{code=Code,
                    message=Message}) ->
      #{code => Code,
  
negative.code: to_events([#event{system_time_nano=Timestamp,
                    name=Name,
                    attributes=Attributes} | Rest], Acc) ->
      to_events(Rest, [#{time_unix_nano => to_unixnano(Timestamp),
                         name => Name,
                         attributes => to_attributes(Attributes)} | Acc]).
  
  -spec to_links(opentelemetry:links()) -> [opentelemetry_exporter_trace_service_pb:link()].
  to_links(Links) ->
      to_links(Links, []).
  
  