Skip to content

Commit

Permalink
clean up span
Browse files Browse the repository at this point in the history
  • Loading branch information
maeddes committed Jul 18, 2024
1 parent cd0a5a1 commit fd8dbcc
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ String addTodo(@PathVariable String todo) {
span.setAttribute("http.method", "POST");
span.setAttribute("http.url", "/todos/{todo}");

System.out.println("Span with attribute:"+span.toString());

try (Scope scope = span.makeCurrent()) {

this.someInternalMethod(todo);
Expand All @@ -104,7 +102,7 @@ String addTodo(@PathVariable String todo) {
span.setStatus(StatusCode.ERROR, "Something bad happened!");
span.recordException(t);
} finally {
System.out.println("Span before completion:"+span.toString());
System.out.println("Span final:"+span.toString());
span.end();
}

Expand Down

0 comments on commit fd8dbcc

Please sign in to comment.