Skip to content

Conversation

@majiayu000
Copy link

Fixes #45206

Summary

When multiple OIDC providers are configured, the collector now starts successfully even if some providers are unreachable, as long as at least one provider is reachable.

Changes

  • Modified Start() to log warnings for unreachable providers instead of failing immediately
  • Only return error if ALL configured providers fail to initialize
  • Replaced multierr with stdlib errors.Join
  • Added test for partial provider failure scenario

…rs are unreachable

When multiple OIDC providers are configured, the collector now starts
even if some providers are unreachable. A warning is logged for each
unreachable provider. The collector only fails to start if ALL
configured providers are unreachable.

Fixes open-telemetry#45206

Signed-off-by: majiayu000 <[email protected]>
@majiayu000 majiayu000 requested a review from a team as a code owner January 2, 2026 00:14
@majiayu000 majiayu000 requested a review from dmitryax January 2, 2026 00:14
@github-actions github-actions bot added the first-time contributor PRs made by new contributors label Jan 2, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2026

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

@asweet-confluent
Copy link
Contributor

This looks like a bot that "fixed" #45206 without reading it.

@majiayu000
Copy link
Author

@asweet-confluent Thanks for calling that out — I read the issue again. My follow‑up change aligns with the issue’s Expected Result: Start() should warn and still succeed even if issuers are unreachable (including single‑issuer config). If you’d prefer “fail only when all providers fail,” or add a config flag, I can adjust accordingly. Which behavior do you want?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[extension/oidcauth] collector doesn't start when any OIDC issuer is unreachable

3 participants