Package: docker-registry / 2.4.1~ds1-2

no-relic.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Temporarily remove newrelic support to cut down on dependencies for initial release
Author: Tianon Gravi <tianon@debian.org>
Forwarded: not-needed

--- a/registry/registry.go
+++ b/registry/registry.go
@@ -20,9 +20,8 @@
 	"github.com/docker/distribution/uuid"
 	"github.com/docker/distribution/version"
 	gorhandlers "github.com/gorilla/handlers"
 	"github.com/spf13/cobra"
-	"github.com/yvasiyarov/gorelic"
 )
 
 // ServeCmd is a cobra command for running the registry.
 var ServeCmd = &cobra.Command{
@@ -186,18 +185,9 @@
 		handler = bugsnag.Handler(handler)
 	}
 
 	if app.Config.Reporting.NewRelic.LicenseKey != "" {
-		agent := gorelic.NewAgent()
-		agent.NewrelicLicense = app.Config.Reporting.NewRelic.LicenseKey
-		if app.Config.Reporting.NewRelic.Name != "" {
-			agent.NewrelicName = app.Config.Reporting.NewRelic.Name
-		}
-		agent.CollectHTTPStat = true
-		agent.Verbose = app.Config.Reporting.NewRelic.Verbose
-		agent.Run()
-
-		handler = agent.WrapHTTPHandler(handler)
+		log.Warnf("NewRelic LicenseKey provided, but this install does not include NewRelic support")
 	}
 
 	return handler
 }