Add some datadog shit

This commit is contained in:
Howl
2016-10-02 19:47:31 +02:00
parent c54c1565ca
commit da0021a9b3
4 changed files with 20 additions and 12 deletions

View File

@@ -3,6 +3,7 @@ package common
import (
"encoding/json"
"github.com/DataDog/datadog-go/statsd"
"github.com/gin-gonic/gin"
"github.com/jmoiron/sqlx"
)
@@ -13,6 +14,7 @@ type MethodData struct {
DB *sqlx.DB
RequestData RequestData
C *gin.Context
Doggo *statsd.Client
}
// Err logs an error into gin.