RSSAmplifier

Jinhua Blog

OpenResty: record the Lua execution time per request in ngx.ctx via LD_PRELOAD

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

TL;DR How can I log the Lua execution time of each request (excluding time spent on asynchronous IO) in ngx.ctx in a non-intrusive, zero-cost way? The Lua execution time is the sum of the following metrics: lua_resume phases REWRITE ACCESS CONTENT BALANCER lua_pcall filters header_filter body_filter https://github.

Read on //luajit.io:80/posts/openresty-lua-request-time/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.