Skip to content

Commit e0d57e9

Browse files
committed
Set result as string
Signed-off-by: Pavol Loffay <[email protected]>
1 parent 50f466c commit e0d57e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/backend2/src/main/java/io/opentelemetry/dice/RollController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public String index(@RequestParam("player") Optional<String> player) {
3333
logger.info("Anonymous player is rolling the dice: " + result);
3434
}
3535
Span span = Span.current();
36-
span.setAttribute("result", result);
36+
span.setAttribute("result", Integer.toString(result));
3737
span.setAttribute("player", player.orElse("Anonymous"));
3838
return Integer.toString(result);
3939
}

0 commit comments

Comments
 (0)