Skip to content

In debug mode, send perf metrics in custom http header #593

@pascalchevrel

Description

@pascalchevrel

Currently we can log our metrics in debug mode in the console (or the apache logs if one does not use the php dev server).

I think it would be convenient to also send this data in a custom http header when in debug mode, this way we can see on the beta server or our VPSs wat the perf of a page is without having to ssh and look at the logs. HTTP headers are also more convenient than outputing directly this infoirmation in the view because the views we need most performance from are the json api and we can't ourput data there.

I quickly checked and it's easy to do, see in the screenshot below the result in firebug, I called the .header Transvision-perf.

entetes

I have something tthat works now but maybe I should let it to a new contributor? Do you like the idea?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions