Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to always track feature events #179

Closed
edvinerikson opened this issue Oct 7, 2019 · 2 comments
Closed

Add support to always track feature events #179

edvinerikson opened this issue Oct 7, 2019 · 2 comments

Comments

@edvinerikson
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We want to track all feature evaluations by default, currently its only possible to configure this through the LD UI per flag basis.

Describe the solution you'd like
Add a new config option trackEvents: booleanin the SDK init that allows us to always generate the feature event.
https://github.com/launchdarkly/js-client-sdk/blob/master/packages/launchdarkly-js-sdk-common/src/index.js#L172

Describe alternatives you've considered
We've considered forking the event collector, but I feel that its a lot of code to maintain cross SDK vs just adding the option here.

Additional context
We will also need the same option in the java server, node server and node client SDK.

@eli-darkly
Copy link
Contributor

The place to configure this isn't on the SDK side, but on the dashboard. If you look at the form that comes up when you click Edit for an environment in Settings, there's this option:

image

That turns on full event tracking for all flags in the environment by default. Or have I misunderstood what you're asking for?

@edvinerikson
Copy link
Contributor Author

Missed that, thanks 👍

eli-darkly added a commit that referenced this issue Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants