Skip to content

Commit

Permalink
Add deprecation warning to jaeger-agent (#4749)
Browse files Browse the repository at this point in the history
Step 1 in #4739

Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro authored Sep 11, 2023
1 parent e9ff813 commit d5f091c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down

0 comments on commit d5f091c

Please sign in to comment.