Sfoglia il codice sorgente

compress diagnostics data (#3225)

Ishaan Mittal 10 mesi fa
parent
commit
c009e2d0b6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      core/pkg/diagnostics/exporter/encoder.go

+ 1 - 1
core/pkg/diagnostics/exporter/encoder.go

@@ -7,5 +7,5 @@ import (
 
 // NewDiagnosticsEncoder returns a JSON encoder used to encode DiagnosticsRunReport events.
 func NewDiagnosticsEncoder() exporter.Encoder[diagnostics.DiagnosticsRunReport] {
-	return exporter.NewJSONEncoder[diagnostics.DiagnosticsRunReport]()
+	return exporter.NewGZipEncoder(exporter.NewJSONEncoder[diagnostics.DiagnosticsRunReport]())
 }