-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
area/luaenhancementFeature requests. Not bugs or questions.Feature requests. Not bugs or questions.stalestalebot believes this issue/PR has not been touched recentlystalebot believes this issue/PR has not been touched recently
Description
Description:
We want to record timestamps in a Lua filter so that we know when requests and responses occur (and eventually derive the duration).
It appears Lua doesn't have a function to do this - os.time provides current time, but only at seconds, not millis or ns. os.clock provides a timestamp, but only for time spent in Lua.
Maybe something like request_handle:timestamp?
Relevant Links:
https://stackoverflow.com/questions/463101/lua-current-time-in-milliseconds
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/luaenhancementFeature requests. Not bugs or questions.Feature requests. Not bugs or questions.stalestalebot believes this issue/PR has not been touched recentlystalebot believes this issue/PR has not been touched recently