Repository navigation
Conversation
OpenFeature Browser Provider Bundle SizesMeasured from the Vite production output after installing packed Both scenarios initialize an OpenFeature provider, evaluate a boolean flag, change context, and evaluate again. Telemetry is disabled for DatadogProvider; no tracking hooks are registered for DatadogCoreProvider. DatadogProvider fetches precomputed assignments for each context; DatadogCoreProvider receives rules from fetchRulesConfiguration once and evaluates locally. Sizes include OpenFeature and the same small scenario harness. Configuration responses are supplied by Playwright and are not bundled. These are complete scenario JS sizes, not configuration payload sizes or isolated provider/Protobuf costs; the difference between rows is not a decoder-only delta.
Dependency checks passed: no Protobuf markers in default/precomputed scenarios; markers present in rules-based scenarios. OpenFeature Browser Tracking Hook Bundle SizesSynthetic entrypoints import and call tracking hook factories from the packed
OpenFeature Node Server Bundle SizesIndependent Webpack production builds of the installed core and Node SDK tarballs, targeting Node 18 with ESM (
Adding SSR helpers to the provider adds 83.4 KiB raw / 23.7 KiB gzip in this build. This includes fetching, parsing, and serialization, not just the decoder. SSR helpers fetch rules for the browser, not for configuring that provider (which uses its existing JSON API). Adding precomputation to the provider adds 21.2 KiB raw / 7.0 KiB gzip in this build. Both precompute scenarios import precomputeConfiguration from /rules-based and receive already-parsed rules from the test harness; they do not fetch, parse, or serialize configuration. These are bundler sizes, not npm install sizes, unbundled Node require/import costs, payload sizes, or latency. Gzip compares compressed artifacts. Deltas compare scenarios in this build, not changes against the base branch. The browser scenarios include OpenFeature and a different harness, so their sizes are not directly comparable. Dependency checks passed: no Protobuf runtime or generated schema modules in the provider-only, precompute, or precomputed-fetch bundles; present in both rules-fetch SSR bundles (checked using Webpack module statistics). This report shows current PR artifact sizes only; it does not compare against the base branch. |
Motivation
Report SDK initialization and configuration-fetch diagnostics for the offline Node core provider. Integrations can use the same callback, event schema, and refresh-reporting methods as DatadogNodeServerProvider.
This PR is stacked on #469.
Changes
onDiagnosticto DatadogCoreProvider and reuse the existing SDKDiagnostics implementation.reportConfigurationFetchStart()andreportConfigurationFetchResult(success)for caller-owned refresh. Reuse outage suppression and cooldown behavior. Cancellation is not a failed fetch./rules-based, regenerate declarations, and document delivery ordering. Integrations start delivery before construction and add SDK/service/environment identity.The tracer catch-up remains a separate change. This provider performs no polling or event uploading. Fetching and parsing completed before construction are outside its initialization timings.
Test instructions
Checklist