Skip to content

Commit b6fc1c3

Browse files
committed
change span attribute name to match implementations in other langs
1 parent 89aecde commit b6fc1c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/roll_dice/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ defmodule DiceGameWeb.DiceController do
6262
Tracer.with_span("roll_dice") do
6363
roll = Enum.random(1..6)
6464

65-
Tracer.set_attribute(:roll, roll)
65+
Tracer.set_attribute("roll.value", roll)
6666

6767
to_string(roll)
6868
end

examples/roll_dice/lib/roll_dice_web/controllers/dice_controller.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ defmodule RollDiceWeb.DiceController do
77
end
88

99
defp roll_dice do
10-
Tracer.with_span("roll_dice") do
10+
Tracer.with_span "roll_dice" do
1111
roll = Enum.random(1..6)
1212

13-
Tracer.set_attribute(:roll, roll)
13+
Tracer.set_attribute("roll.value", roll)
1414

1515
to_string(roll)
1616
end

0 commit comments

Comments
 (0)