-
Notifications
You must be signed in to change notification settings - Fork 847
Support for gzip compression in OTLP exporter #6494
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
Open
hannahhaering
wants to merge
26
commits into
open-telemetry:main
Choose a base branch
from
hannahhaering:add-compression-in-exporter
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 22 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
5c729a2
implement gzip compression in exporter
hannahhaering cc0757d
add missing property in IOtlpExporterOptions
hannahhaering 2efddd6
fix failed tests
hannahhaering 56fd60a
added tests for compression; moved grpc header from exporters into ex…
hannahhaering 9cd706b
removed comments
hannahhaering b7a5d61
add test
hannahhaering faf407b
Merge remote-tracking branch 'origin' into add-compression-in-exporter
hannahhaering 39d6187
fix dataLength
hannahhaering fa128af
Updated public API files
hannahhaering 8449eb5
added changelog entry for compression in exporter
hannahhaering e720418
fix spacing
hannahhaering b62d445
Merge branch 'main' into add-compression-in-exporter
hannahhaering 07bb383
Merge remote-tracking branch 'origin' into add-compression-in-exporter
hannahhaering 24c723a
Merge branch 'add-compression-in-exporter' of https://github.com/hann…
hannahhaering e71f472
Introduced enum for export compression configuration
hannahhaering 2b869ae
Update test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/TestGr…
hannahhaering 1e60db8
use streams in compression method
hannahhaering d30fa88
Update src/OpenTelemetry.Exporter.OpenTelemetryProtocol/IOtlpExporter…
hannahhaering 4ddd75e
Update src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportCom…
hannahhaering 047044e
split unit tests by compression; added grpc compression header
hannahhaering b017a59
Merge branch 'add-compression-in-exporter' of https://github.com/hann…
hannahhaering 8c99fd9
added support for gzip compression in example console application
hannahhaering 804f09a
Update src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportCom…
hannahhaering 27220c7
remove unnecessary cast
hannahhaering 804f421
Merge branch 'add-compression-in-exporter' of https://github.com/hann…
hannahhaering 41dc747
Update examples/Console/Program.cs
hannahhaering File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
OpenTelemetry.Exporter.OtlpExportCompression | ||
OpenTelemetry.Exporter.OtlpExportCompression.Gzip = 1 -> OpenTelemetry.Exporter.OtlpExportCompression | ||
OpenTelemetry.Exporter.OtlpExportCompression.None = 0 -> OpenTelemetry.Exporter.OtlpExportCompression | ||
OpenTelemetry.Exporter.OtlpExporterOptions.Compression.get -> OpenTelemetry.Exporter.OtlpExportCompression | ||
OpenTelemetry.Exporter.OtlpExporterOptions.Compression.set -> void |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportCompression.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
namespace OpenTelemetry.Exporter; | ||
|
||
/// <summary> | ||
/// Supported compression methods for OTLP exporter according to the specification https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md. | ||
/// </summary> | ||
public enum OtlpExportCompression | ||
{ | ||
/// <summary> | ||
/// Compression is disabled. | ||
hannahhaering marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
/// </summary> | ||
None = 0, | ||
|
||
/// <summary> | ||
/// Compress with Gzip. | ||
/// </summary> | ||
Gzip = 1, | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.