private static void serializeIntoProtobuf(@NotNull Collection<SpanData> spanData, @NotNull OutputStream outputStream)
    throws ReflectiveOperationException {
    Object marshaller = Class.forName("io.opentelemetry.exporter.internal.otlp.traces.TraceRequestMarshaler")
      .getMethod("create", Collection.class)
      .invoke(null, spanData);
    marshaller.getClass()
      .getMethod("writeBinaryTo", OutputStream.class)
      .invoke(marshaller, outputStream);
  }
private static void serializeIntoProtobuf(@NotNull Collection<SpanData> spanData, @NotNull OutputStream outputStream)