From afd0f3b8f299d8aad36fa51274fdee8c6448ff63 Mon Sep 17 00:00:00 2001 From: Mario Macias Date: Wed, 4 Dec 2024 15:48:13 +0100 Subject: [PATCH] Correct documentation of routes default behavior --- 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 64c422df8..aa3bd6096 100644 --- a/docs/sources/configure/options.md +++ b/docs/sources/configure/options.md @@ -706,7 +706,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 e4d0088b8..080691e42 100644 --- a/pkg/beyla/config.go +++ b/pkg/beyla/config.go @@ -117,7 +117,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