The logic in StreamResourceHandlerInstrumentation for removing the parametrized URL parts does not work properly ATM:
This changes the logic to generate a new path based on the filename instead of trying to fix the existing one. That might not be 100% in all cases, but it's consistent, and users probably don't care that much about the actual URL. This also sets the http.route to the generalized URL, and http.target to the actual path.
Description
The logic in
StreamResourceHandlerInstrumentation
for removing the parametrized URL parts does not work properly ATM:This changes the logic to generate a new path based on the filename instead of trying to fix the existing one. That might not be 100% in all cases, but it's consistent, and users probably don't care that much about the actual URL. This also sets the
http.route
to the generalized URL, andhttp.target
to the actual path.