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

feat: configurable duration for slow queries #1316

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

adityathebe
Copy link
Member

No description provided.

@@ -51,8 +51,7 @@ type Logger interface {
}

type Config struct {
// SlowThreshold in nanoseconds
SlowThreshold int64
Copy link
Member

Choose a reason for hiding this comment

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

This is for all DB query

I am thinking of:

query.log.slowDuration=100ms
query.log=debug

where INFO:
[SLOW 100ms:100]config grammar
DEBUG
[100ms:100]config grammar
TRACE
[100ms:100]config grammar -> generated sql

@moshloop moshloop enabled auto-merge (rebase) February 4, 2025 11:59
@moshloop moshloop force-pushed the feat/configurable-slow-query-duration branch from da352dd to cc61070 Compare February 4, 2025 11:59
@moshloop moshloop merged commit c6c5e85 into main Feb 4, 2025
6 checks passed
@moshloop moshloop deleted the feat/configurable-slow-query-duration branch February 4, 2025 12:02
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