elastic / elastic/fleet-server
HTTP Request log sampling
Open
- Dominant language
- Go
- Stars
- 113
- Forks
- 117
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 112
Description
HTTP logs are only written if the Debug level is enabled, or if a request results in a non-2XX response.
We should change this to allow logging of 2XX responses with some level of sampling when Debug is not enabled.
A [BurstSampler](https://pkg.go.dev/github.com/rs/zerolog#BurstSampler) may be a good fit for this as it would limit the logs emitted during during activity spikes.
Contributor guide
Assessment
This issue has not been assessed yet.