Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[elasticsearchexporter] support compression level #37260

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

khushijain21
Copy link
Contributor

@khushijain21 khushijain21 commented Jan 16, 2025

P.S Waiting for new otel-collector release

Description

This PR syncs support for configuring compression level on ES exporter. Compression Level is a supported param on confighttp. Ref https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configcompression/compressiontype.go#L16-L18

Testing

Added UT

Documentation

The documentation is also updated with default level in case no level is provided

@khushijain21 khushijain21 requested a review from a team as a code owner January 16, 2025 05:17
@khushijain21 khushijain21 marked this pull request as draft January 16, 2025 05:17
@khushijain21 khushijain21 changed the title support compression level [elasticsearchexporter] support compression level Jan 16, 2025
Copy link
Contributor

@carsonip carsonip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, looking forward to collector support.

@@ -71,7 +71,7 @@ service:

### HTTP settings

The Elasticsearch exporter supports common [HTTP Configuration Settings][confighttp]. Gzip compression is enabled by default. To disable compression, set `compression` to `none`.
The Elasticsearch exporter supports common [HTTP Configuration Settings][confighttp]. Gzip compression is enabled by default. To disable compression, set `compression` to `none`. Default Compression Level is set to 1.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The Elasticsearch exporter supports common [HTTP Configuration Settings][confighttp]. Gzip compression is enabled by default. To disable compression, set `compression` to `none`. Default Compression Level is set to 1.
The Elasticsearch exporter supports common [HTTP Configuration Settings][confighttp]. Gzip compression is enabled by default. To disable compression, set `compression` to `none`. Default Compression Level is set to 1 (gzip.BestSpeed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants