Hello @Crystal Li
To calculate the queue time between when a request is sent to the function and when the function picks it up, you can subtract the request received timestamp from the request sent timestamp.
The result will give you the time it took for the function to pick up the request after it was sent. However, it's important to note that the request received timestamp may not always be available or accurate, depending on how the function is implemented.
Additionally, the queue time may be affected by various factors such as network latency, function load, and processing time.
If you have access to the logs or monitoring data for your function, you can use that information to calculate the queue time more accurately.
For example, in Azure Functions, you can use Application Insights to track the request sent and received timestamps, and calculate the queue time using the custom metrics feature.
Let me know if you have any further questions or if there's anything else I can help you with.
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.