Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add benchmarks for loki.secretfilter component #1887

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

romain-gaillard
Copy link
Contributor

PR Description

This PR adds benchmarks for the loki.secretfilter component.

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • Tests updated

@romain-gaillard romain-gaillard self-assigned this Oct 15, 2024
@@ -270,7 +270,7 @@ func (c *Component) Update(args component.Arguments) error {
// Compile regexes
for _, rule := range gitleaksCfg.Rules {
// If specific secret types are provided, only include rules that match the types
if c.args.Types != nil && len(c.args.Types) > 0 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just fixing a warning by the linter that said the nil check was redundant.

@romain-gaillard romain-gaillard marked this pull request as ready for review October 15, 2024 08:22
@romain-gaillard romain-gaillard requested a review from a team as a code owner October 15, 2024 08:22
@wildum wildum merged commit fc7f41b into main Oct 15, 2024
17 of 18 checks passed
@wildum wildum deleted the loki-secretfilter-benchmarks branch October 15, 2024 14:23
pbailhache pushed a commit to pbailhache/alloy that referenced this pull request Oct 17, 2024
* Add benchmarks

* More benchmarks

* Don't fail tests if the temp file can't be deleted

* Don't fail tests if the temp file can't be deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants