-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[receiver/azuremonitor] Handle errors; don't ignore them #31268
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Agreed, the errors shouldn't be hidden and ignored. I checked and found this has been the functionality since this component was introduced, but there's no comment as to why they're ignored. I see this is in the call stack of every |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
…zureCredential authentication (#33584) Description: Enhances azuremonitor receiver authentication by using [managed identity](https://learn.microsoft.com/en-us/azure/developer/go/azure-sdk-authentication?tabs=bash#option-3-use-a-managed-identity) or [environment variables](https://learn.microsoft.com/en-us/azure/developer/go/azure-sdk-authentication?tabs=bash#option-1-define-environment-variables). I have extended the config parameter auth to support `managed_identity` and `default_credentials`. Also fix the issue where the errors were being ignored. Link to tracking Issue: 1) Fixes #31268 2) No tracing issues for extenting auth methods Testing: Tested on my Azure VMs with managed identity Documentation: Added to README.md
Component(s)
receiver/azuremonitor
What happened?
Description
Code currently fails silently when getting clients from Azure SDK for metrics and metric definitions.
Steps to Reproduce
Read the code called by start method of scraper. It currently holes errors when instantiating SDK clients the scraper uses.
Look at getArmClient and azureScraper.GetMetricsValuesClient.
Expected Result
Handle errors.
Actual Result
Ignores errors.
Collector version
v0.94.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
# N/A
Log output
Additional context
N/A
The text was updated successfully, but these errors were encountered: