Skip to content

Commit 7cebba5

Browse files
authored
feat: increase Drain tree depth from 4 to 30 (#24)
Matches Loki's default. Higher depth means the prefix tree routes more precisely, reducing the number of candidate clusters that need similarity comparison at leaf nodes. This improves both accuracy and performance for pattern detection.
1 parent 5a6b00c commit 7cebba5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/pattern/drain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type DrainParser struct {
2323
// NewDrainParser creates a DrainParser with default Drain parameters.
2424
func NewDrainParser() (*DrainParser, error) {
2525
d, err := drain3.NewDrain(
26-
drain3.WithDepth(4),
26+
drain3.WithDepth(30),
2727
drain3.WithSimTh(0.4),
2828
drain3.WithExtraDelimiter([]string{"|", "=", ","}),
2929
)

0 commit comments

Comments
 (0)