You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(openfeature): return a ready provider from the openfeature entrypoint
dd-trace/openfeature previously only existed as a side-effect require for
file tracers (#9324). Turn it into the real public entrypoint: it now
returns a usable FlaggingProvider instance after tracer.init(), and
tracer.openfeature is deprecated in its favor since it doesn't work in
bundled applications.
Extract the base provider class into a factory so it can be constructed
from either the bundler-opaque require-provider wrapper (legacy
tracer.openfeature) or a plain require (the new entrypoint) without
duplicating the class body.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,23 +93,24 @@ Regardless of where you open the issue, someone at Datadog will try to help.
93
93
94
94
If you would like to trace your bundled application then please read this page on [bundling and dd-trace](https://docs.datadoghq.com/tracing/trace_collection/automatic_instrumentation/dd_libraries/nodejs/#bundling). It includes information on how to use our ESBuild plugin and includes caveats for other bundlers.
95
95
96
-
When using the experimental OpenFeature provider, file-traced deployments can force the optional provider and
97
-
its dependencies into the output with a side-effect import before accessing `tracer.openfeature`:
96
+
When using the experimental OpenFeature provider in a bundled application, require it through the
97
+
`dd-trace/openfeature` subpath. This subpath uses a plain `require`/`import` for its dependencies, so
98
+
bundlers can resolve and include them at build time. It must be loaded after `tracer.init()`:
0 commit comments