class MetricImporterUtils {

    public static Map<String, String> resolveExtraTagsFromRequestHeaders(ServerRequest request,
                                                                         Map<String, String> map) {
        Preconditions.checkNotNull(request);
        String app = WebfluxUtils.getHeaderValue(request, "app");
        if (app != null) {
            map.put("app", app);
        }

        String clientIp = WebfluxUtils.getHeaderValue(request, "ip");
        if (clientIp != null) {
            map.put("ip", clientIp);
        }

        String step = WebfluxUtils.getHeaderValue(request, "step");
        if (step != null) {
            map.put("step", step);
        }
        return map;
    }

    private  MetricImporterUtils();

}