I stumbled into a great middleware named
gorelic.
It's too easy to start using it and you get useful information about your app.
package main
import (
"github.com/labstack/echo"
"github.com/syntaqx/echo-middleware/gorelic"
)
func main() {
e := echo.New()
// Attach middleware
gorelic.InitNewRelicAgent("YOUR_LICENSE_KEY", "YOUR_APPLICATION_NAME", true)
e.Use(gorelic.Handler())
e.Run(":8080")
}
 |
Memory usage |
For example from the image below, I straight away knew that handling the right to view data for user with errors, seems not to be the right way. On such a page the response time rises immediately (green and purple lines).
 |
Response time |
Ei kommentteja:
Lähetä kommentti
Huomaa: vain tämän blogin jäsen voi lisätä kommentin.