protected Counter createExceptionCounter(Response response, Type type, Exception e) {
    final Tag[] extraTags = extraTags(response, type, e);
    final RequestTemplate template = response.request().requestTemplate();
    final Tags allTags =
        metricTagResolver
            .tag(
                template.methodMetadata(),
                template.feignTarget(),
                Tag.of("uri", template.methodMetadata().template().path()),
                Tag.of("exception_name", e.getClass().getSimpleName()),
                Tag.of(
                    "root_cause_name", ExceptionUtils.getRootCause(e).getClass().getSimpleName()))
            .and(extraTags);
    return meterRegistry.counter(metricName.name("error_count"), allTags);
  }
Wrap feign {@link Decoder} with metrics.
micrometer/src/main/java/feign/micrometer/MeteredDecoder.java