-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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] Return concrete types #31264
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Sounds like a good idea to me, removing |
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 also sounds like a good first issue, do we have a label like that? |
@michalpristas opentelemetry-collector-contrib/receiver/azuremonitorreceiver/scraper.go Lines 167 to 170 in 9396cd8
is this correct? |
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. |
@led0nk sorry for very late reply where we ignore error but we return client, that may be nil, but there's no check for nil client going forward |
@michalpristas no worries Okay i got that, but shouldn't we implement this for those functions also? Because if something fails there, we wouldn't notice either, that's why i was referring to those lines. What do you think? opentelemetry-collector-contrib/receiver/azuremonitorreceiver/scraper.go Lines 146 to 149 in 9396cd8
opentelemetry-collector-contrib/receiver/azuremonitorreceiver/scraper.go Lines 157 to 160 in 9396cd8
|
@michalpristas while i was working on this issue i found out, that this seems to be already resolved, so i guess we can close the issue, wdyt? opentelemetry-collector-contrib/receiver/azuremonitorreceiver/scraper.go Lines 143 to 190 in 282a911
|
this was part of the problem, other part was that getArmClient returns |
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. |
@michalpristas |
Component(s)
receiver/azuremonitor
Describe the issue you're reporting
This was raised by @michalpristas as a tangential comment to changes in #30224. I believe that the instance of this receiver's code more idiomatic approach of returning concrete types will make our code more maintainable - likely highlighting where we benefit from the layer of abstraction in interfaces and... where we don't.
The text was updated successfully, but these errors were encountered: