Skip to content

Commit

Permalink
Pring EOL notice from v1 binaries
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro committed Dec 7, 2024
1 parent 65cff3c commit bd11dc5
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/all-in-one/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import (

// all-in-one/main is a standalone full-stack jaeger backend, backed by a memory store
func main() {
flags.PrintV1EOL()
setupcontext.SetAllInOne()

svc := flags.NewService(ports.CollectorAdminHTTP)
Expand Down
1 change: 1 addition & 0 deletions cmd/collector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import (
const serviceName = "jaeger-collector"

func main() {
cmdFlags.PrintV1EOL()
svc := cmdFlags.NewService(ports.CollectorAdminHTTP)

storageFactory, err := storage.NewFactory(storage.FactoryConfigFromEnvAndCLI(os.Args, os.Stderr))
Expand Down
1 change: 1 addition & 0 deletions cmd/ingester/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
)

func main() {
flags.PrintV1EOL()
svc := flags.NewService(ports.IngesterAdminHTTP)

storageFactory, err := storage.NewFactory(storage.FactoryConfigFromEnvAndCLI(os.Args, os.Stderr))
Expand Down
24 changes: 24 additions & 0 deletions cmd/internal/flags/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,30 @@ type Service struct {
signalsChannel chan os.Signal
}

func PrintV1EOL() {
println(`
*******************************************************************************
******** WARNING: End-of-life Notice for Jaeger v1
You are currently running a v1 version of Jaeger, which is deprecated and will
reach end-of-life on December 31st, 2025. This means there will be no further
development, bug fixes, or security patches for v1 after this date.
We strongly recommend migrating to Jaeger v2 for continued support and access
to new features.
For detailed migration instructions, please refer to the official Jaeger
documentation: https://www.jaegertracing.io/docs/latest/migration/
Tracking issue: https://github.com/jaegertracing/jaeger/issues/6321
******** WARNING: End-of-life Notice for Jaeger v1
*******************************************************************************
`)
}

// NewService creates a new Service.
func NewService(adminPort int) *Service {
signalsChannel := make(chan os.Signal, 1)
Expand Down
1 change: 1 addition & 0 deletions cmd/query/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import (
)

func main() {
flags.PrintV1EOL()
svc := flags.NewService(ports.QueryAdminHTTP)

storageFactory, err := storage.NewFactory(storage.FactoryConfigFromEnvAndCLI(os.Args, os.Stderr))
Expand Down

0 comments on commit bd11dc5

Please sign in to comment.