Skip to content

Commit

Permalink
Merge pull request #60 from tkuchiki/fix-matching-groups-behavior
Browse files Browse the repository at this point in the history
Fix matching groups behavior
  • Loading branch information
tkuchiki authored Aug 23, 2021
2 parents 687e810 + 70fd964 commit 5a01e87
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ sample は [Usage samples](./docs/usage_samples.ja.md) を参照してくださ
- デフォルトはすべて出力(`all`)
- `-m, --matching-groups=PATTERN,...`
- 正規表現にマッチした URI を同じ集計対象として扱います
- 指定した順序で正規表現を評価します。マッチした場合、それ以降の正規表現を評価しません。
- 後述の [URI matching groups](#uri-matching-groups) 参照
- `-f, --filters=FILTERS`
- 集計対象をフィルタします
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ See: [Usage samples](./docs/usage_samples.md)
- The default is `all`
- `-m, --matching-groups=PATTERN,...`
- Treat URIs that match regular expressions as the same URI
- Evaluate in the specified order. If matched, no further evaluation is performed.
- See [URI matching groups](#uri-matching-groups)
- `-f, --filters=FILTERS`
- Filters the targets for profile
Expand Down
2 changes: 1 addition & 1 deletion alp.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"gopkg.in/alecthomas/kingpin.v2"
)

const version = "1.0.7"
const version = "1.0.8"

type Profiler struct {
outWriter io.Writer
Expand Down
1 change: 1 addition & 0 deletions stats/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (hs *HTTPStats) Set(uri, method string, status int, restime, resBodyBytes,
if ok := re.Match([]byte(uri)); ok {
pattern := re.String()
uri = pattern
break
}
}
}
Expand Down

0 comments on commit 5a01e87

Please sign in to comment.