code: static void recordMessageEvent(
        Span span, long id, Type type, long uncompressedMessageSize, long compressedMessageSize) {
      MessageEvent messageEvent =
          MessageEvent.builder(type, id)
              .setUncompressedMessageSize(uncompressedMessageSize)
              .setCompressedMessageSize(compressedMessageSize)
              .build();
      span.addMessageEvent(messageEvent);
    }
docs: A convenience to record a {@link MessageEvent} with given parameters.
  
  @param span the span which this {@code MessageEvent} will be added to.
  @param id the id of the event.
  @param type the {@code MessageEvent.Type} of the event.
  @param uncompressedMessageSize size of the message before compressed (optional).
  @param compressedMessageSize size of the message after compressed (optional).
  @since 0.19