From d5f091c6d255dd9187cc9c28826316b76728a9f7 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Mon, 11 Sep 2023 13:21:42 -0400 Subject: [PATCH] Add deprecation warning to jaeger-agent (#4749) Step 1 in #4739 Signed-off-by: Yuri Shkuro --- cmd/agent/main.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd/agent/main.go b/cmd/agent/main.go index e7fcf515795..1d16da93d8b 100644 --- a/cmd/agent/main.go +++ b/cmd/agent/main.go @@ -39,19 +39,24 @@ import ( ) func main() { + println("***************************************************************************************************") + println("*** WARNING jaeger-agent is deprecated. See https://github.com/jaegertracing/jaeger/issues/4739 ***") + println("***************************************************************************************************") + svc := flags.NewService(ports.AgentAdminHTTP) svc.NoStorage = true v := viper.New() command := &cobra.Command{ Use: "jaeger-agent", - Short: "Jaeger agent is a local daemon program which collects tracing data.", - Long: `Jaeger agent is a daemon program that runs on every host and receives tracing data submitted by Jaeger client libraries.`, + Short: "(deprecated) Jaeger agent is a local daemon program which collects tracing data.", + Long: `(deprecated) Jaeger agent is a daemon program that runs on every host and receives tracing data submitted by Jaeger client libraries.`, RunE: func(cmd *cobra.Command, args []string) error { if err := svc.Start(v); err != nil { return err } logger := svc.Logger // shortcut + baseFactory := svc.MetricsFactory. Namespace(metrics.NSOptions{Name: "jaeger"}). Namespace(metrics.NSOptions{Name: "agent"})