oarevalo / BugLogHQ

BugLogHQ is a tool to centralize the handling of automated bug reports from multiple applications. BugLogHQ provides a unified view of error messages sent from any number of applications, allowing the developer to search, graph, forward, and explore the bug reports submitted by the applications.
http://www.bugloghq.com
154 stars 67 forks source link

Add "checkpoint" reporting to buglog client #3

Closed oarevalo closed 11 years ago

oarevalo commented 12 years ago

The idea is that the client object will have a variable persistent across the same request that the caller application can use to report checkpoints on milestones as the request gets executed. Then, if a bug report needs to be sent to buglog, an array/struct/something with all the checkpoints will be sent too. This will be helpful when trying to pinpoint the source of the errors (i.e. "how much of request was completed before the error happened?")

Example:

buglogclient.checkpoint("account created");

or can also be used to track begin/end timestamps:

buglogclient.checkpoint("expensive process","start");
.....
buglogclient.checkpoint("expensive process","end");

Also the caller application could just get the checkpoint data and output it at the end of the request as a debugging tool.

writedump(buglogclient.getCheckpoints());
oarevalo commented 11 years ago

Implemented in 1.8