diff --git a/go.mod b/go.mod index 48c5705..c084e7d 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/spiral/endure v1.0.6 github.com/spiral/errors v1.0.12 github.com/spiral/goridge/v3 v3.2.3 - github.com/spiral/roadrunner-plugins/v2 v2.5.1 + github.com/spiral/roadrunner-plugins/v2 v2.6.0-beta.1 github.com/spiral/roadrunner/v2 v2.5.0 // --------------------- github.com/stretchr/testify v1.7.0 @@ -88,6 +88,7 @@ require ( github.com/nats-io/nats.go v1.13.0 // indirect github.com/nats-io/nkeys v0.3.0 // indirect github.com/nats-io/nuid v1.0.1 // indirect + github.com/newrelic/go-agent/v3 v3.15.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/pborman/uuid v1.2.1 // indirect github.com/pelletier/go-toml v1.9.4 // indirect diff --git a/go.sum b/go.sum index 9f2ff78..d72cd1e 100644 --- a/go.sum +++ b/go.sum @@ -441,6 +441,8 @@ github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8= github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4= github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= +github.com/newrelic/go-agent/v3 v3.15.0 h1:XKF81YOkkO5cCEtQmguamOVMVmeWnv7X3+mkRtwwG3U= +github.com/newrelic/go-agent/v3 v3.15.0/go.mod h1:1A1dssWBwzB7UemzRU6ZVaGDsI+cEn5/bNxI0wiYlIc= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= @@ -541,8 +543,8 @@ github.com/spiral/goridge/v3 v3.2.3 h1:iNz6aD/c00hC50wo+qT8uP5ZZ3VdCAERXUtNiyDE3 github.com/spiral/goridge/v3 v3.2.3/go.mod h1:DA4Ekw9qVcTvVouUNJgxESXURBHZ2SfkliCEIpEl9lA= github.com/spiral/roadrunner-plugins/v2 v2.5.0 h1:Jgeu0dhlsUUlYl2KoTjRH8f+y7TaJiOyvzDuOxR0RVo= github.com/spiral/roadrunner-plugins/v2 v2.5.0/go.mod h1:ngs+cj96654/cmIHS3c6JWliVjehrv7bkUSmNymXehU= -github.com/spiral/roadrunner-plugins/v2 v2.5.1 h1:G8c5+97Gn8zy32fj5Pm6Wj2h1fKubnP9LS1oe5ncvsI= -github.com/spiral/roadrunner-plugins/v2 v2.5.1/go.mod h1:YKGBMaY1aJV2QUhLEY6J0+Lzz62lWAoD6aqgPMK+8yM= +github.com/spiral/roadrunner-plugins/v2 v2.6.0-beta.1 h1:y1m0WnZIEntmpQfcY7I4xRHXjU+XHHpuF++T64aG8Lk= +github.com/spiral/roadrunner-plugins/v2 v2.6.0-beta.1/go.mod h1:fd6RYnnQNzw8eZtHu7pJPwesJw8N+UFo2XeY+VEhbuQ= github.com/spiral/roadrunner/v2 v2.5.0 h1:SyqLdExFdX9HFGaiV0qeneaZTJxz9oM9D6qwu0Co1j0= github.com/spiral/roadrunner/v2 v2.5.0/go.mod h1:ZjmyfOy5eWRWJwb1yxQAFFhufw1bBYtbxq8F8yqZbHI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= diff --git a/internal/container/plugins.go b/internal/container/plugins.go index 26ec6f8..1465de1 100644 --- a/internal/container/plugins.go +++ b/internal/container/plugins.go @@ -9,6 +9,7 @@ import ( httpPlugin "github.com/spiral/roadrunner-plugins/v2/http" "github.com/spiral/roadrunner-plugins/v2/http/middleware/gzip" "github.com/spiral/roadrunner-plugins/v2/http/middleware/headers" + newrelic "github.com/spiral/roadrunner-plugins/v2/http/middleware/new_relic" "github.com/spiral/roadrunner-plugins/v2/http/middleware/static" "github.com/spiral/roadrunner-plugins/v2/informer" "github.com/spiral/roadrunner-plugins/v2/jobs" @@ -62,6 +63,7 @@ func Plugins() []interface{} { //nolint:funlen &beanstalk.Plugin{}, // ========= + &newrelic.Plugin{}, &grpcPlugin.Plugin{}, // kv + ws + jobs plugin