class Trace {

    public SpanContext extractParentSpan(HttpHeaders headers){
        final HashMap<String, String> mapHeaders = new HashMap<>();
        headers.forEach((key, value) -> {
            mapHeaders.put(key, value.get(0));
        });

        try {
            SpanContext parentSpan = modelServiceApiTracer.extract(Format.Builtin.HTTP_HEADERS, new TextMapAdapter(mapHeaders));
            return parentSpan;
        } catch (IllegalArgumentException e) {
            log.error("Exception during extracting parentSpan", e);
        }
        return null;

    }

    @Autowired public  Trace(Tracer tracer);

}