Skip to content

Commit

Permalink
Reuse compression configuration from the confighttp helper (#1432)
Browse files Browse the repository at this point in the history
* Use the upstream compression module, which includes zstd support

* Remove CompressEncoding

* Remove local compression modules

* Enable gzip compression by default

* Adding a changelog

* docs(exporter): Readme change

* Only allow sumo supported compression encoding configuration

* Deprecation notice for compress_encoding and test additions

* Add validation to the deprecated CompressEncoding field to not support zstd

* Use the upstream constants for compression types
  • Loading branch information
rnishtala-sumo committed Feb 7, 2024
1 parent 81e94c0 commit 11f9ba2
Show file tree
Hide file tree
Showing 13 changed files with 171 additions and 579 deletions.
1 change: 1 addition & 0 deletions .changelog/1432.changed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat(sumologicexporter): Deprecate compress_encoding and remove all of our own compression code in favor of using the confighttp helper
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ receivers:
exporters:
sumologic/1:
endpoint: http://dummy.endpoint.com
compress_encoding: ""
compression: ""
retry_on_failure:
enabled: false
sending_queue:
Expand Down
3 changes: 3 additions & 0 deletions pkg/exporter/sumologicexporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ exporters:
# if sumologicextension is not being used, the endpoint is required
endpoint: <HTTP_Source_URL>
# Compression encoding format, empty string means no compression, default = gzip
# DEPRECATION NOTICE: compress_encoding (reason: use compression)
compress_encoding: {gzip, deflate, ""}
# Compression encoding format, empty string means no compression, default = gzip
compression: {gzip, zstd, deflate, ""}
# max HTTP request body size in bytes before compression (if applied),
# NOTE: this limit does not apply to data sent in otlp format,
# to limit size of otlp requests, please use the batch processor:
Expand Down
87 changes: 0 additions & 87 deletions pkg/exporter/sumologicexporter/compress.go

This file was deleted.

244 changes: 0 additions & 244 deletions pkg/exporter/sumologicexporter/compress_test.go

This file was deleted.

Loading

0 comments on commit 11f9ba2

Please sign in to comment.