This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 0fdc16bb45ac83b8a72637c5dc16d79d9467f7fc Author: Mo Chen <[email protected]> AuthorDate: Mon Jun 30 16:54:40 2025 -0500 Add URL argument to USDT (#12199) (cherry picked from commit 632c8f09afdebc907db35f287632b0e260df5780) --- src/proxy/http/HttpSM.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/proxy/http/HttpSM.cc b/src/proxy/http/HttpSM.cc index 12b35f3307..7ecec3fa55 100644 --- a/src/proxy/http/HttpSM.cc +++ b/src/proxy/http/HttpSM.cc @@ -648,8 +648,19 @@ HttpSM::state_read_client_request_header(int event, void *data) _ua.get_entry()->vc_read_handler = &HttpSM::state_watch_for_client_abort; _ua.get_entry()->vc_write_handler = &HttpSM::state_watch_for_client_abort; _ua.get_txn()->cancel_inactivity_timeout(); - ATS_PROBE1(milestone_ua_read_header_done, sm_id); milestones[TS_MILESTONE_UA_READ_HEADER_DONE] = ink_get_hrtime(); +#ifdef ENABLE_SYSTEMTAP_PROBES + { + char url_buf[4096] = {0}; + int url_len = 0; + int offset = 0; + URL *url = t_state.hdr_info.client_request.url_get(); + if (url) { + url->print(url_buf, sizeof(url_buf) - 1, &url_len, &offset); + ATS_PROBE3(milestone_ua_read_header_done_url, sm_id, url_buf, url_len); + } + } +#endif } switch (state) {
