From 2669ebff282bb1905749631fc8c3b3bde0c85241 Mon Sep 17 00:00:00 2001 From: Pablo Baeyens Date: Thu, 24 Mar 2022 19:59:44 +0100 Subject: [PATCH] [exporter/datadog] Deprecate `GetCensoredKey` method, unused (#8830) * [exporter/datadog] Deprecate `GetCensoredKey` method, unused * Add changelog entry --- CHANGELOG.md | 1 + exporter/datadogexporter/config/config.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29f3d5c4532a..ae0f35f7a612 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/exporter/datadogexporter/config/config.go b/exporter/datadogexporter/config/config.go index 81da4be2456a..60ed7eeaf48c 100644 --- a/exporter/datadogexporter/config/config.go +++ b/exporter/datadogexporter/config/config.go @@ -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