@Override
  public void encode(Object object, Type bodyType, RequestTemplate template)
      throws EncodeException {
    createTimer(object, bodyType, template)
        .record(() -> encoder.encode(object, bodyType, template));

    if (template.body() != null) {
      createSummary(object, bodyType, template).record(template.body().length);
    }
  }
Wrap feign {@link Encoder} with metrics.
micrometer/src/main/java/feign/micrometer/MeteredEncoder.java