Skip to content

Commit

Permalink
remove backwards compatibility for old envs
Browse files Browse the repository at this point in the history
  • Loading branch information
kenanfarukcakir committed Aug 5, 2024
1 parent bada9b3 commit 9cba7f3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,6 @@ func main() {
}

tracingEnabled, err := strconv.ParseBool(os.Getenv("TRACING_ENABLED"))
if err != nil {
// for backwards compatibility
ebpfEnabled, _ := strconv.ParseBool(os.Getenv("SERVICE_MAP_ENABLED"))
distTracingEnabled, _ := strconv.ParseBool(os.Getenv("DIST_TRACING_ENABLED"))
tracingEnabled = ebpfEnabled || distTracingEnabled
}

metricsEnabled, _ := strconv.ParseBool(os.Getenv("METRICS_ENABLED"))
logsEnabled, _ := strconv.ParseBool(os.Getenv("LOGS_ENABLED"))

Expand Down Expand Up @@ -105,7 +98,7 @@ func main() {
a := aggregator.NewAggregator(ctx, ct, kubeEvents, ec.EbpfEvents(), ec.EbpfProcEvents(), ec.EbpfTcpEvents(), ec.TlsAttachQueue(), dsBackend)
a.Run()

a.AdvertiseDebugData()
// a.AdvertiseDebugData()

ec.Init()
go ec.ListenEvents()
Expand Down

0 comments on commit 9cba7f3

Please sign in to comment.