Skip to content

feat(openfeature): decrease default initialization timeout to 10s [backport 4.9]#18177

Merged
brettlangdon merged 1 commit into
4.9from
brettlangdon/backport.18169.4.9
May 19, 2026
Merged

feat(openfeature): decrease default initialization timeout to 10s [backport 4.9]#18177
brettlangdon merged 1 commit into
4.9from
brettlangdon/backport.18169.4.9

Conversation

@brettlangdon
Copy link
Copy Markdown
Member

We found that 30s timeout doesn't play well with gunicorn, which has 30s initialization timout for the worker.

If the user naively calls openfeature.api.set_provider() at the top-level, RC failing to deliver configuration may bring their whole application down with hard-to-debug [CRITICAL] WORKER TIMEOUT error message.

Decrease default timeout to 10s, which is enough when RC is working but not too long to cause other issues/upstream timeouts.

Part of incident-54756, follow up to https://github.com//pull/16650

@brettlangdon brettlangdon added the changelog/no-changelog A changelog entry is not required for this PR. label May 19, 2026
@brettlangdon brettlangdon requested review from a team as code owners May 19, 2026 19:25
@brettlangdon brettlangdon requested review from greghuels, juanjux, rachelyangdog and sameerank and removed request for a team May 19, 2026 19:25
@cit-pr-commenter-54b7da
Copy link
Copy Markdown

cit-pr-commenter-54b7da Bot commented May 19, 2026

Codeowners resolved as

ddtrace/internal/openfeature/_provider.py                               @DataDog/feature-flagging-and-experimentation-sdk
ddtrace/internal/settings/_supported_configurations.py                  @DataDog/apm-sdk-capabilities-python @DataDog/apm-python
ddtrace/internal/settings/openfeature.py                                @DataDog/feature-flagging-and-experimentation-sdk
releasenotes/notes/fix-openfeature-init-blocking-70c8d5a99287cc49.yaml  @DataDog/apm-python
supported-configurations.json                                           @DataDog/apm-sdk-capabilities-python @DataDog/apm-python

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 519a469521

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread supported-configurations.json
Comment thread ddtrace/internal/openfeature/_provider.py
…8169)

<!-- Provide an overview of the change and motivation for the change -->
We found that 30s timeout doesn't play well with gunicorn, which has 30s initialization timout for the worker.

If the user naively calls `openfeature.api.set_provider()` at the top-level, RC failing to deliver configuration may bring their whole application down with hard-to-debug `[CRITICAL] WORKER TIMEOUT` error message.

Decrease default timeout to 10s, which is enough when RC is working but not too long to cause other issues/upstream timeouts.

<!-- Describe your testing strategy or note what tests are included -->

<!-- Note any risks associated with this change, or "None" if no risks -->

<!-- Any other information that would be helpful for reviewers -->
Part of incident-54756, follow up to #16650

Co-authored-by: brett.langdon <brett.langdon@datadoghq.com>
(cherry picked from commit 017bc2a)
@brettlangdon brettlangdon force-pushed the brettlangdon/backport.18169.4.9 branch from 519a469 to bda1755 Compare May 19, 2026 19:27
@brettlangdon brettlangdon enabled auto-merge (squash) May 19, 2026 19:29
@brettlangdon brettlangdon merged commit e5303c3 into 4.9 May 19, 2026
356 checks passed
@brettlangdon brettlangdon deleted the brettlangdon/backport.18169.4.9 branch May 19, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog A changelog entry is not required for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants