Skip to content

Log sampling Caddyfile support #6680

@francislavoie

Description

@francislavoie

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions