Skip to content

Commit 91472bc

Browse files
committed
test: Add test for http.route cleaning
1 parent e081529 commit 91472bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

instrumentation/action_pack/test/opentelemetry/instrumentation/action_pack/handlers/action_controller_test.rb

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@
5858
_(span.attributes['code.function']).must_equal 'ok'
5959
end
6060

61+
it 'strips (:format) from http.route' do
62+
get 'items/1234'
63+
64+
_(span.attributes['http.route']).must_equal '/items/:id'
65+
end
66+
6167
it 'does not memoize data across requests' do
6268
get '/ok'
6369
get '/items/new'

0 commit comments

Comments
 (0)