Skip to content

Commit

Permalink
[exporter/datadog] Deprecate GetCensoredKey method, unused (#8830)
Browse files Browse the repository at this point in the history
* [exporter/datadog] Deprecate `GetCensoredKey` method, unused

* Add changelog entry
  • Loading branch information
mx-psi authored Mar 24, 2022
1 parent 15cae21 commit 2669ebf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
### 🚩 Deprecations 🚩

- `datadogexporter`: Deprecate `OnlyMetadata` method from `Config` struct (#8359)
- `datadogexporter`: Deprecate `GetCensoredKey` method from `APIConfig` struct (#8830)

- `resourcedetectionprocessor`: Add attribute allowlist (#8547)

Expand Down
3 changes: 2 additions & 1 deletion exporter/datadogexporter/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ type APIConfig struct {
Site string `mapstructure:"site"`
}

// GetCensoredKey returns the API key censored for logging purposes
// GetCensoredKey returns the API key censored for logging purposes.
// Deprecated: [v0.48.0] Will be removed in v0.49.0.
func (api *APIConfig) GetCensoredKey() string {
if len(api.Key) <= 5 {
return api.Key
Expand Down

0 comments on commit 2669ebf

Please sign in to comment.