Skip to content

[receiver/azuremonitor] Handle errors; don't ignore them #31268

Closed
@nslaughter

Description

@nslaughter

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

N/A

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions