Skip to content

Commit

Permalink
Correct documentation of routes default behavior (#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomac authored Dec 5, 2024
1 parent 9e52409 commit b268b8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/sources/configure/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,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 |
Expand Down
2 changes: 1 addition & 1 deletion pkg/beyla/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pkg/transform/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
// UnmatchHeuristic detects the route field using a heuristic
UnmatchHeuristic = UnmatchType("heuristic")

UnmatchDefault = UnmatchWildcard
UnmatchDefault = UnmatchHeuristic
)

type IgnoreMode string
Expand Down

0 comments on commit b268b8a

Please sign in to comment.