There are two URL exclude lists for webservers:
disable_tracing_path
Disables paths based on a regex after (not including) the hostname. Should be able to include/exclude any combination of paths, but does not include hostname
disable_tracing_hostname
Disable path based on the exact URL being included in a list.
disable_tracing_hostname seems to be significantly less useful than disable_tracing_path, since if there is any URL parameters in the endpoint, eg http://site.com/abc?param=2 it will not have a use (specific parameter values can be disabled by disable_tracing_path, if desired). Personally I would support disable_tracing_hostname performing a regex on everything before the path, or if there are cases where we need a combination of hostname + path, it could regex the whole URL.
For example, if a user wanted to exclude all endpoints that were not called with http:// or https://, this could not be done with the current exclude lists. Or if the user wanted to exclude requests to admin.website.com/path but not website.com/path, this could also not be done.
There may also be value to using the endpoint pattern instead of the actual URL, ie for endpoint /hello/{helloid}/info a user could just add /hello/{helloid}/info to the exclude list instead of needing to write a regex. However this would also give disable_tracing_path less functionality with regards to excluding specific values passed in, so this would need some more thinking.
Thoughts?
There are two URL exclude lists for webservers:
disable_tracing_path
Disables paths based on a regex after (not including) the hostname. Should be able to include/exclude any combination of paths, but does not include hostname
disable_tracing_hostname
Disable path based on the exact URL being included in a list.
disable_tracing_hostnameseems to be significantly less useful thandisable_tracing_path, since if there is any URL parameters in the endpoint, eghttp://site.com/abc?param=2it will not have a use (specific parameter values can be disabled by disable_tracing_path, if desired). Personally I would supportdisable_tracing_hostnameperforming a regex on everything before the path, or if there are cases where we need a combination of hostname + path, it could regex the whole URL.For example, if a user wanted to exclude all endpoints that were not called with
http://orhttps://, this could not be done with the current exclude lists. Or if the user wanted to exclude requests toadmin.website.com/pathbut notwebsite.com/path, this could also not be done.There may also be value to using the endpoint pattern instead of the actual URL, ie for endpoint
/hello/{helloid}/infoa user could just add/hello/{helloid}/infoto the exclude list instead of needing to write a regex. However this would also givedisable_tracing_pathless functionality with regards to excluding specific values passed in, so this would need some more thinking.Thoughts?