Skip to content

Commit

Permalink
[backend] include tracing annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
isselparra committed Nov 29, 2024
1 parent 909af64 commit 08f7437
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,21 @@ public void deleteAtomicTesting(@PathVariable @NotBlank final String injectId) {
atomicTestingService.deleteAtomicTesting(injectId);
}

@Tracing(name = "Duplicate an atomic testing", layer = "api", operation = "POST")
@PostMapping("/{atomicTestingId}/duplicate")
public InjectResultOverviewOutput duplicateAtomicTesting(
@PathVariable @NotBlank final String atomicTestingId) {
return atomicTestingService.duplicate(atomicTestingId);
}

@Tracing(name = "Launch an atomic testing", layer = "api", operation = "POST")
@PostMapping("/{atomicTestingId}/launch")
public InjectResultOverviewOutput launchAtomicTesting(
@PathVariable @NotBlank final String atomicTestingId) {
return atomicTestingService.launch(atomicTestingId);
}

@Tracing(name = "Relaunch an atomic testing", layer = "api", operation = "POST")
@PostMapping("/{atomicTestingId}/relaunch")
public InjectResultOverviewOutput relaunchAtomicTesting(
@PathVariable @NotBlank final String atomicTestingId) {
Expand Down

0 comments on commit 08f7437

Please sign in to comment.