class DetectorMappingController {

    @RequestMapping(method = RequestMethod.POST)
    @ResponseStatus(HttpStatus.CREATED)
    public String createDetectorMapping(@RequestBody CreateDetectorMappingRequest request, @RequestHeader HttpHeaders header) {
        SpanContext parentSpanContext = trace.extractParentSpan(header);
        Span span = trace.startSpan("create-mappings", parentSpanContext);
        request.validate();
        String detectorMappingJsonString = detectorMappingRepo.createDetectorMapping(request);
        span.finish();
        return detectorMappingJsonString;
    }

}