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

Log sampling Caddyfile support #6680

Closed
francislavoie opened this issue Nov 7, 2024 · 2 comments · Fixed by #6682
Closed

Log sampling Caddyfile support #6680

francislavoie opened this issue Nov 7, 2024 · 2 comments · Fixed by #6682
Labels
feature ⚙️ New feature or request good first issue 🐤 Good for newcomers

Comments

@francislavoie
Copy link
Member

Our logging stack has sampling support, but it's currently only usable via JSON config. We never wired up Caddyfile config for it.

Sampling *LogSampling `json:"sampling,omitempty"`

We should add Caddyfile support. This should be easy, it should just be a new option added to the log directive called sampling added in this switch:

And it should take a block of options, i.e. interval, first and thereafter.

@francislavoie francislavoie added feature ⚙️ New feature or request good first issue 🐤 Good for newcomers labels Nov 7, 2024
@nikonhub
Copy link
Contributor

nikonhub commented Nov 7, 2024

Hello. I'd like to work on this one :)

@francislavoie
Copy link
Member Author

Go ahead, PRs welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ⚙️ New feature or request good first issue 🐤 Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants