class DetectorController {

    @PostMapping(path = "/updateDetectorTrainingTime")
    public void updateDetectorTrainingTime(@RequestParam String uuid,
                                           @RequestParam Long nextRun,
                                           @RequestHeader HttpHeaders headers) {
        Assert.notNull(uuid, "uuid can't be null");
        Assert.notNull(nextRun, "nextRun can't be null");
        SpanContext parentSpanContext = trace.extractParentSpan(headers);
        Span span = trace.startSpan("update-detector-training-time", parentSpanContext);
        span.setTag("detectorUuid", uuid);
        service.updateDetectorTrainingTime(uuid, nextRun);
        span.finish();
    }

}