Skip to content

[pkg/winperfcounters] Refactor internal collect data retry when scraping #39851

Open
@pjanotti

Description

@pjanotti

Component(s)

No response

Describe the issue you're reporting

Under a specific API error, win_perf_counters.PDH_CALC_NEGATIVE_DENOMINATOR, the scrape methods have a hard coded sleep of 1 second before attempting a retry. This shouldn't be hard coded into the method. The caller should have either a parameter to control that or having the method simply returning error so the caller could decide on the best action. Context: https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/39835/files#r2073781937

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