feat(handler): add HandlerOpts.DisableCompression (prom-compat; native handler serves uncompressed)

Co-authored-by: Hanzo Dev <dev@hanzo.ai>
This commit is contained in:
zeekay
2026-06-30 16:02:19 -07:00
co-authored by Hanzo Dev
parent 3f046637d9
commit c145eeae04
+4
View File
@@ -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.