Skip to content

Commit 56c09d3

Browse files
authored
Pring EOL notice from v1 binaries (#6322)
## Which problem is this PR solving? - Part of #6321 ## Description of the changes - Print EOL notice from core v1 binaries ## How was this change tested? ``` $ go run ./cmd/all-in-one 2024/12/07 13:02:54 maxprocs: Leaving GOMAXPROCS=12: CPU quota undefined ******************************************************************************* 🛑 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: #6321 🛑 WARNING: End-of-life Notice for Jaeger v1 ******************************************************************************* 2024/12/07 13:02:54 application version: git-commit=, git-version=, build-date= {"level":"info","ts":1733594574.315758,"caller":"flags/service.go:123","msg":"Mounting metrics handler on admin server","route":"/metrics"} ``` --------- Signed-off-by: Yuri Shkuro <[email protected]>
1 parent 65cff3c commit 56c09d3

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

cmd/all-in-one/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import (
4545

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

5051
svc := flags.NewService(ports.CollectorAdminHTTP)

cmd/collector/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import (
3535
const serviceName = "jaeger-collector"
3636

3737
func main() {
38+
cmdFlags.PrintV1EOL()
3839
svc := cmdFlags.NewService(ports.CollectorAdminHTTP)
3940

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

cmd/ingester/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030
)
3131

3232
func main() {
33+
flags.PrintV1EOL()
3334
svc := flags.NewService(ports.IngesterAdminHTTP)
3435

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

cmd/internal/flags/service.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,30 @@ type Service struct {
4242
signalsChannel chan os.Signal
4343
}
4444

45+
func PrintV1EOL() {
46+
println(`
47+
*******************************************************************************
48+
49+
🛑 WARNING: End-of-life Notice for Jaeger v1
50+
51+
You are currently running a v1 version of Jaeger, which is deprecated and will
52+
reach end-of-life on December 31st, 2025. This means there will be no further
53+
development, bug fixes, or security patches for v1 after this date.
54+
55+
We strongly recommend migrating to Jaeger v2 for continued support and access
56+
to new features.
57+
58+
For detailed migration instructions, please refer to the official Jaeger
59+
documentation: https://www.jaegertracing.io/docs/latest/migration/
60+
61+
Tracking issue: https://github.com/jaegertracing/jaeger/issues/6321
62+
63+
🛑 WARNING: End-of-life Notice for Jaeger v1
64+
65+
*******************************************************************************
66+
`)
67+
}
68+
4569
// NewService creates a new Service.
4670
func NewService(adminPort int) *Service {
4771
signalsChannel := make(chan os.Signal, 1)

cmd/query/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import (
3636
)
3737

3838
func main() {
39+
flags.PrintV1EOL()
3940
svc := flags.NewService(ports.QueryAdminHTTP)
4041

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

0 commit comments

Comments
 (0)