You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Add compression support for the Google Cloud Storage exporter, allowing
users to compress log data before uploading to GCS to reduce storage
costs and transfer times. Supports gzip and zstd compression algorithms
with automatic file extension handling (.gz, .zst).
<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixesopen-telemetry#45337
<!--Describe what testing was performed and which tests were added.-->
#### Testing
- Added comprehensive unit tests for compression functionality including
gzip and zstd compression verification
- Tests verify that compressed data can be properly decompressed back to
original content
- Tests verify correct file extensions (.gz, .zst) are applied to
compressed files
- Tests verify compression reduces data size compared to uncompressed
data
- All existing tests continue to pass, ensuring backward compatibility
- Added configuration validation tests for compression settings
<!--Describe the documentation added.-->
#### Documentation
- Updated README.md with compression configuration options and examples
- Added usage examples showing how to enable gzip/zstd compression
- Documented the `bucket.compression` configuration parameter
<!--Please delete paragraphs that you did not use before submitting.-->
---------
Signed-off-by: Alex <alex.s@akeyless.io>
Co-authored-by: Constança Manteigas <113898685+constanca-m@users.noreply.github.com>
Copy file name to clipboardExpand all lines: exporter/googlecloudstorageexporter/README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ This exporter writes received OpenTelemetry data to a cloud storage bucket.
27
27
|`bucket.partition`| Configuration for time-based partitioning. See below for details. | No ||
28
28
|`bucket.reuse_if_exists`| If true, use the existing bucket if it already exists; if false, error if bucket exists. | No |`false`|
29
29
|`bucket.region`| Region where the bucket will be created or where it exists. If left empty, it will query the metadata endpoint. It requires the collector to be running in a Google Cloud environment. | Yes ||
30
+
|`bucket.compression`| Compression algorithm used to compress data before uploading. Valid values are `gzip`, `zstd`, or no value set for no compression. | No ||
30
31
31
32
### Partition Configuration
32
33
@@ -59,3 +60,18 @@ extensions:
59
60
# text encoding to ensure only the body is placed in the bucket
description: 'FilePrefix holds the prefix for the created filename. This prefix is applied after the partition path (if any). Example: file_prefix: "logs" Result: ".../logs_UUID"'
0 commit comments