-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add request_start_time variable #1867
add request_start_time variable #1867
Conversation
ACK and we need to introduce one test case for your new variables |
Test case have been added. And the official website documentation has been updated: alibaba/tengine-website-generator#42 |
LGTM |
An additional question (just curious): under what observability requirements would you use this timing variable? |
@lhanjian For example, we want to count the QPS of Taobao's Double 11 promotion. Since the backend business processing time is different, many businesses even timeout and return after several seconds. $time_local is the time when the log is printed, the printing time will behind the request arrival time. The peak value The requests will be scattered and printed in the next few seconds. It is impossible to accurately count the number of peak requests per second. Using $request_start_time to count the peak values can solve this problem. |
* add request_start_time variable * request_start_time: format alignment * request_start_time: add testcase
add request_start_time variable