Skip to content

Commit

Permalink
docs(azure_blob sink, gcp_cloud_storage sink): Note transparent decom…
Browse files Browse the repository at this point in the history
…pression (#21814)

Copy note from AWS S3 sink.

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
  • Loading branch information
jszwedko authored Nov 15, 2024
1 parent 9e97385 commit 983a993
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sinks/azure_blob/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ pub struct AzureBlobSinkConfig {
#[serde(flatten)]
pub encoding: EncodingConfigWithFraming,

/// Compression configuration.
///
/// All compression algorithms use the default compression level unless otherwise specified.
///
/// Some cloud storage API clients and browsers handle decompression transparently, so
/// depending on how they are accessed, files may not always appear to be compressed.
#[configurable(derived)]
#[serde(default = "Compression::gzip_default")]
pub compression: Compression,
Expand Down
6 changes: 6 additions & 0 deletions src/sinks/gcp/cloud_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ pub struct GcsSinkConfig {
#[serde(flatten)]
encoding: EncodingConfigWithFraming,

/// Compression configuration.
///
/// All compression algorithms use the default compression level unless otherwise specified.
///
/// Some cloud storage API clients and browsers handle decompression transparently, so
/// depending on how they are accessed, files may not always appear to be compressed.
#[configurable(derived)]
#[serde(default)]
compression: Compression,
Expand Down
3 changes: 3 additions & 0 deletions website/cue/reference/components/sinks/base/azure_blob.cue
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ base: components: sinks: azure_blob: configuration: {
Compression configuration.
All compression algorithms use the default compression level unless otherwise specified.
Some cloud storage API clients and browsers handle decompression transparently, so
depending on how they are accessed, files may not always appear to be compressed.
"""
required: false
type: string: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ base: components: sinks: gcp_cloud_storage: configuration: {
Compression configuration.
All compression algorithms use the default compression level unless otherwise specified.
Some cloud storage API clients and browsers handle decompression transparently, so
depending on how they are accessed, files may not always appear to be compressed.
"""
required: false
type: string: {
Expand Down

0 comments on commit 983a993

Please sign in to comment.