launchdarkly / js-core

LaunchDarkly monorepo for JavaScript SDKs
Other
12 stars 12 forks source link

Inspector Support #497

Open lolJS opened 4 days ago

lolJS commented 4 days ago

Is your feature request related to a problem? Please describe. I would love to see the react-native SDK support inspectors or provide a similar event:

 inspectors: [
    {
      type: "flag-used",
      name: "dd-inspector",
      method: (key: string, detail: LDClient.LDEvaluationDetail) => {
        datadogRum.addFeatureFlagEvaluation(key, detail.value);
      },
    },
  ],

Describe the solution you'd like Inspector support: https://docs.launchdarkly.com/sdk/features/inspectors#javascript

Describe alternatives you've considered I explored using the SDK's existing client.on("change") event.

sergioalmela commented 21 hours ago

Same for node