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

Remove unused credentials from AzureMonitorMetricsReceiver #18

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

redbaron
Copy link
Contributor

No description provided.

@redbaron
Copy link
Contributor Author

This is a follow up to #15

@@ -83,14 +80,11 @@ type MetricsClient interface {
}

// NewAzureMonitorMetricsReceiver lets you create a new receiver.
func NewAzureMonitorMetricsReceiver(subscriptionID string, clientID string, clientSecret string, tenantID string, targets *Targets, azureClients *AzureClients) (*AzureMonitorMetricsReceiver, error) {
func NewAzureMonitorMetricsReceiver(subscriptionID string, _, _, _ string, targets *Targets, azureClients *AzureClients) (*AzureMonitorMetricsReceiver, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't want to change exported function signature to avoid semver bump

@@ -14,9 +14,6 @@ type AzureMonitorMetricsReceiver struct {
AzureClients *AzureClients

subscriptionID string
clientID string
Copy link
Contributor Author

Choose a reason for hiding this comment

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

all these creds were stored in struct field, but not used

@8naama
Copy link
Contributor

8naama commented Jul 28, 2024

Thank you for your contributions @redbaron! 🙏🏼
We'll merge your PR into a new version

@8naama 8naama mentioned this pull request Aug 1, 2024
@8naama 8naama closed this in #20 Aug 5, 2024
@8naama 8naama merged commit 0a65016 into logzio:master Aug 5, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants