@@ -14,11 +14,11 @@ type (
1414 // Skipper defines a function to skip middleware.
1515 Skipper middleware.Skipper
1616
17- // Node name
18- Node string `json:"node"`
17+ // App ID
18+ AppID string
1919
20- // Node group
21- Group string `json:"group"`
20+ // App name
21+ AppName string
2222
2323 // LabStack API key
2424 APIKey string `json:"api_key"`
@@ -69,8 +69,8 @@ func MiddlewareWithConfig(config Config) echo.MiddlewareFunc {
6969
7070 // Initialize
7171 cube := labstack .NewClient (config .APIKey ).Cube ()
72- cube .Node = config .Node
73- cube .Group = config .Group
72+ cube .AppID = config .AppID
73+ cube .AppName = config .AppName
7474 cube .APIKey = config .APIKey
7575 cube .BatchSize = config .BatchSize
7676 cube .DispatchInterval = config .DispatchInterval
@@ -81,11 +81,11 @@ func MiddlewareWithConfig(config Config) echo.MiddlewareFunc {
8181 if config .Skipper (c ) {
8282 return next (c )
8383 }
84- cr := cube .Start (c .Request (), c .Response ())
84+ r := cube .Start (c .Request (), c .Response ())
8585 if err = next (c ); err != nil {
8686 c .Error (err )
8787 }
88- cube .Stop (cr , c .Response ().Status , c .Response ().Size )
88+ cube .Stop (r , c .Response ().Status , c .Response ().Size )
8989 return
9090 }
9191 }
0 commit comments