- As a developer I want to see db (and view) runtime for my benchmark requests so I can figure out where the application can be improved.
In Rails 5 we can get db_runtime and view_runtime for a controller action through Active Support notifications. It might be interesting to add these to the response headers.
At which point does it make sense to encode multiple values in one header? For example:
X-PerfCheck: db_runtime=0.23,view_runtime=0.54,query_count=3
In Rails 5 we can get
db_runtimeandview_runtimefor a controller action through Active Support notifications. It might be interesting to add these to the response headers.At which point does it make sense to encode multiple values in one header? For example: