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

Rule Concurrency: Fix debug log #10409

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

julienduchesne
Copy link
Member

The log added here: https://github.com/grafana/mimir/pull/10400/files#diff-3e8efecf11fa9185935eea3d3c9c7993f99422353a391190657877e902875a37R254 doesn't work for all loggers

When I tested it in dev, I got some of these errors:

ts=2025-01-10T17:26:37.207249729Z caller=rule_concurrency.go:254 level=debug component=concurrency-controller tenant=17065 group=mimir_querier_api msg="Batched rules into concurrent blocks" batches="unsupported value type"

I added a new fmt.Stringer type for the slice because I don't want the debug log to negatively affect performance (the added benchmark showed that stringing had a 25% performance hit)

@julienduchesne julienduchesne requested review from a team as code owners January 10, 2025 18:06
@julienduchesne julienduchesne force-pushed the julienduchesne/rule-concurrency-fix-log branch from 034ab29 to 6476312 Compare January 10, 2025 18:07
The log added here: https://github.com/grafana/mimir/pull/10400/files#diff-3e8efecf11fa9185935eea3d3c9c7993f99422353a391190657877e902875a37R254 doesn't work for all loggers

When I tested it in dev, I got some of these errors:
```
ts=2025-01-10T17:26:37.207249729Z caller=rule_concurrency.go:254 level=debug component=concurrency-controller tenant=17065 group=mimir_querier_api msg="Batched rules into concurrent blocks" batches="unsupported value type"
```

I added a new `fmt.Stringer` type for the slice because I don't want the debug log to negatively affect performance (the added benchmark showed that stringing had a 25% performance hit)
@julienduchesne julienduchesne force-pushed the julienduchesne/rule-concurrency-fix-log branch from 6476312 to cb9b520 Compare January 10, 2025 18:08
@julienduchesne julienduchesne merged commit ed3160e into main Jan 10, 2025
29 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/rule-concurrency-fix-log branch January 10, 2025 19:21
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