Skip to content

Commit

Permalink
Match on request path instead of status
Browse files Browse the repository at this point in the history
  • Loading branch information
joshk committed Oct 28, 2024
1 parent 73aef32 commit ac0b589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nerves_hub/telemetry/customizations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule NervesHub.Telemetry.Customizations do
end

def handle_request([:bandit, :request, :stop], _measurements, %{conn: conn}, _config) do
if conn.status == 101 do
if conn.request_path =~ ~r/\/websocket$/ do
Tracer.update_name("WEBSOCKET #{conn.request_path}")
end

Expand Down

0 comments on commit ac0b589

Please sign in to comment.