Skip to content

Commit

Permalink
change span attribute name to match implementations in other langs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdel committed Oct 8, 2023
1 parent 4c19577 commit da516b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/roll_dice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ defmodule DiceGameWeb.DiceController do
Tracer.with_span("roll_dice") do
roll = Enum.random(1..6)

Tracer.set_attribute(:roll, roll)
Tracer.set_attribute("roll.value", roll)

to_string(roll)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ defmodule RollDiceWeb.DiceController do
end

defp roll_dice do
Tracer.with_span("roll_dice") do
Tracer.with_span "roll_dice" do
roll = Enum.random(1..6)

Tracer.set_attribute(:roll, roll)
Tracer.set_attribute("roll.value", roll)

to_string(roll)
end
Expand Down

0 comments on commit da516b7

Please sign in to comment.