feat(timing): timing is now working with graphite and influxdb

This commit is contained in:
Torkel Ödegaard
2016-06-03 09:17:36 +02:00
parent e2c794ff31
commit 3065d10931
9 changed files with 96 additions and 31 deletions

View File

@ -257,3 +257,7 @@ func (ctx *Context) JsonApiErr(status int, message string, err error) {
func (ctx *Context) HasUserRole(role m.RoleType) bool {
return ctx.OrgRole.Includes(role)
}
func (ctx *Context) TimeRequest(timer metrics.Timer) {
ctx.Data["perfmon.timer"] = timer
}