Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ddtrace/internal/openfeature/_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(self, *args: typing.Any, initialization_timeout: typing.Optional[fl
self._metadata = Metadata(name="Datadog")
self._status = ProviderStatus.NOT_READY

# Initialization timeout: constructor arg takes priority, then env var (default 30s)
# Initialization timeout: constructor arg takes priority, then env var
Comment thread
brettlangdon marked this conversation as resolved.
if initialization_timeout is not None:
self._initialization_timeout = initialization_timeout
else:
Expand Down
1 change: 1 addition & 0 deletions ddtrace/internal/settings/_supported_configurations.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
"DD_EXCEPTION_REPLAY_CAPTURE_MAX_FRAMES",
"DD_EXCEPTION_REPLAY_ENABLED",
"DD_EXPERIMENTAL_FLAGGING_PROVIDER_ENABLED",
"DD_EXPERIMENTAL_FLAGGING_PROVIDER_INITIALIZATION_TIMEOUT_MS",
"DD_EXPERIMENTAL_PROPAGATE_PROCESS_TAGS_ENABLED",
"DD_EXTERNAL_ENV",
"DD_FALCON_DISTRIBUTED_TRACING",
Expand Down
4 changes: 2 additions & 2 deletions ddtrace/internal/settings/openfeature.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ class OpenFeatureConfig(DDConfig):

# Provider initialization timeout in milliseconds.
# Controls how long initialize() blocks waiting for the first Remote Config payload.
# Default is 30000ms (30 seconds), matching Java, Go, and Node.js SDKs.
# Default is 10000ms (10 seconds).
initialization_timeout_ms = DDConfig.var(
int,
"DD_EXPERIMENTAL_FLAGGING_PROVIDER_INITIALIZATION_TIMEOUT_MS",
default=30000,
default=10000,
)

_openfeature_config_keys = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ features:
- |
openfeature: This introduces a configurable initialization timeout for ``DataDogProvider``.
The timeout controls how long ``initialize()`` waits for configuration before returning,
and defaults to 30 seconds. Set it via the
and defaults to 10 seconds. Set it via the
``DD_EXPERIMENTAL_FLAGGING_PROVIDER_INITIALIZATION_TIMEOUT_MS`` environment variable or the
``init_timeout`` constructor parameter.
11 changes: 10 additions & 1 deletion supported-configurations.json
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,16 @@
{
"implementation": "A",
"type": "boolean",
"default": "false"
"default": "false",
"experimental": true
}
],
"DD_EXPERIMENTAL_FLAGGING_PROVIDER_INITIALIZATION_TIMEOUT_MS": [
{
"implementation": "A",
"type": "int",
"default": "10000",
Comment thread
brettlangdon marked this conversation as resolved.
"experimental": true
}
],
"DD_EXPERIMENTAL_PROPAGATE_PROCESS_TAGS_ENABLED": [
Expand Down
Loading