Skip to content

Commit

Permalink
[configcompression] Remove deprecated types, constants and methods (#…
Browse files Browse the repository at this point in the history
…9517)

**Description:**

Removes deprecated types, constants and methods.

**Link to tracking Issue:** Fixes #9388
  • Loading branch information
mx-psi authored Feb 8, 2024
1 parent 87dd2af commit b6d7aad
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 31 deletions.
25 changes: 25 additions & 0 deletions .chloggen/mx-psi_configcompression-remove-deprecated.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: breaking

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: configcompression

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Remove deprecated `configcompression` types, constants and methods.

# One or more tracking issues or pull requests related to the change
issues: [9388]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:

# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: [api]
31 changes: 0 additions & 31 deletions config/configcompression/compressiontype.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ package configcompression // import "go.opentelemetry.io/collector/config/config

import "fmt"

// CompressionType represents a compression method
// Deprecated [0.94.0]: use Type instead.
type CompressionType = Type

// Type represents a compression method
type Type string

Expand All @@ -20,35 +16,8 @@ const (
TypeZstd Type = "zstd"
typeNone Type = "none"
typeEmpty Type = ""

// Gzip
// Deprecated [0.94.0]: use TypeGzip instead.
Gzip CompressionType = "gzip"

// Zlib
// Deprecated [0.94.0]: use TypeZlib instead.
Zlib CompressionType = "zlib"

// Deflate
// Deprecated [0.94.0]: use TypeDeflate instead.
Deflate CompressionType = "deflate"

// Snappy
// Deprecated [0.94.0]: use TypeSnappy instead.
Snappy CompressionType = "snappy"

// Zstd
// Deprecated [0.94.0]: use TypeZstd instead.
Zstd CompressionType = "zstd"
)

// IsCompressed returns false if CompressionType is nil, none, or empty. Otherwise it returns true.
//
// Deprecated: [0.94.0] use member function CompressionType.IsCompressed instead
func IsCompressed(compressionType CompressionType) bool {
return compressionType.IsCompressed()
}

// IsCompressed returns false if CompressionType is nil, none, or empty.
// Otherwise, returns true.
func (ct *Type) IsCompressed() bool {
Expand Down

0 comments on commit b6d7aad

Please sign in to comment.