From 5104be22d9e3bb409b5e8e7d6cfeb9a914b52588 Mon Sep 17 00:00:00 2001 From: Mario Macias Date: Thu, 5 Dec 2024 10:23:21 +0100 Subject: [PATCH] Correct documentation of routes default behavior (#1431) (cherry picked from commit b268b8af67aa3c98d608a99edb16eccf0f6467ec) --- docs/sources/configure/options.md | 2 +- pkg/beyla/config.go | 2 +- pkg/transform/routes.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sources/configure/options.md b/docs/sources/configure/options.md index b281d9f43..c63475619 100644 --- a/docs/sources/configure/options.md +++ b/docs/sources/configure/options.md @@ -705,7 +705,7 @@ Higher values reduce the load on the Kubernetes API service. YAML section `routes`. This section can be only configured via the YAML file. If no `routes` section is provided in -the YAML file, a default routes' pipeline stage will be created and filtered with the `wildcard` +the YAML file, a default routes' pipeline stage will be created and filtered with the `heuristic` routes decorator. | YAML | Environment variable | Type | Default | diff --git a/pkg/beyla/config.go b/pkg/beyla/config.go index cb55fba08..87238ab08 100644 --- a/pkg/beyla/config.go +++ b/pkg/beyla/config.go @@ -115,7 +115,7 @@ var DefaultConfig = Config{ FetchTimeout: 500 * time.Millisecond, }, }, - Routes: &transform.RoutesConfig{Unmatch: transform.UnmatchHeuristic}, + Routes: &transform.RoutesConfig{Unmatch: transform.UnmatchDefault}, NetworkFlows: defaultNetworkConfig, Processes: process.CollectConfig{ RunMode: process.RunModePrivileged, diff --git a/pkg/transform/routes.go b/pkg/transform/routes.go index ba544608f..6d5a14ee0 100644 --- a/pkg/transform/routes.go +++ b/pkg/transform/routes.go @@ -23,7 +23,7 @@ const ( // UnmatchHeuristic detects the route field using a heuristic UnmatchHeuristic = UnmatchType("heuristic") - UnmatchDefault = UnmatchWildcard + UnmatchDefault = UnmatchHeuristic ) type IgnoreMode string