class DetectorController {

    @PostMapping
    @ResponseStatus(HttpStatus.CREATED)
    public String createDetector(@Valid @RequestBody Detector detector, @RequestHeader HttpHeaders headers) {
        SpanContext parentSpanContext = trace.extractParentSpan(headers);
        Span span= trace.startSpan("create-detector", parentSpanContext);
        val uuid = service.createDetector(detector);
        span.finish();
        return uuid.toString();
    }

}