add back datadog "requests"
This commit is contained in:
parent
cc90105130
commit
b2c3ada7c0
|
@ -56,6 +56,8 @@ func wrap(handle fasthttp.RequestHandler) fasthttp.RequestHandler {
|
|||
return func(c *fasthttp.RequestCtx) {
|
||||
start := time.Now()
|
||||
|
||||
doggo.Incr("requests", nil, 1)
|
||||
|
||||
defer func() {
|
||||
if rval := recover(); rval != nil {
|
||||
var err error
|
||||
|
|
|
@ -52,9 +52,6 @@ func Start(conf common.Conf, dbO *sqlx.DB) *fhr.Router {
|
|||
fmt.Println(err)
|
||||
}
|
||||
doggo.Namespace = "api."
|
||||
// r.Use(func(c *gin.Context) {
|
||||
// doggo.Incr("requests", nil, 1)
|
||||
// })
|
||||
|
||||
// redis
|
||||
red = redis.NewClient(&redis.Options{
|
||||
|
|
Loading…
Reference in New Issue
Block a user