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) {
|
return func(c *fasthttp.RequestCtx) {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
|
|
||||||
|
doggo.Incr("requests", nil, 1)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
if rval := recover(); rval != nil {
|
if rval := recover(); rval != nil {
|
||||||
var err error
|
var err error
|
||||||
|
|
|
@ -52,9 +52,6 @@ func Start(conf common.Conf, dbO *sqlx.DB) *fhr.Router {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
doggo.Namespace = "api."
|
doggo.Namespace = "api."
|
||||||
// r.Use(func(c *gin.Context) {
|
|
||||||
// doggo.Incr("requests", nil, 1)
|
|
||||||
// })
|
|
||||||
|
|
||||||
// redis
|
// redis
|
||||||
red = redis.NewClient(&redis.Options{
|
red = redis.NewClient(&redis.Options{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user