Skip to content

Commit ac0b589

Browse files
committed
Match on request path instead of status
1 parent 73aef32 commit ac0b589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/nerves_hub/telemetry/customizations.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defmodule NervesHub.Telemetry.Customizations do
1414
end
1515

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

0 commit comments

Comments
 (0)