mirror of
https://github.com/luxfi/metric.git
synced 2026-07-27 04:12:44 +00:00
feat(handler): add HandlerOpts.DisableCompression (prom-compat; native handler serves uncompressed)
Co-authored-by: Hanzo Dev <dev@hanzo.ai>
This commit is contained in:
@@ -32,6 +32,10 @@ type HandlerOpts struct {
|
||||
ErrorHandling HandlerErrorHandling
|
||||
// ErrorLog is used when ErrorHandling is Continue.
|
||||
ErrorLog interface{ Println(...any) }
|
||||
// DisableCompression mirrors prometheus/client_golang/promhttp.HandlerOpts.
|
||||
// The native handler serves uncompressed exposition, so this is always
|
||||
// effectively honored; the field exists for source compatibility.
|
||||
DisableCompression bool
|
||||
}
|
||||
|
||||
// HTTPHandlerOpts is an alias for HandlerOpts for compatibility.
|
||||
|
||||
Reference in New Issue
Block a user