-
Notifications
You must be signed in to change notification settings - Fork 46
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
Del all assignments #2436
Del all assignments #2436
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,23 @@ For details on flushing, check the [Node.js Server SDK documentation](/server/no | |
--- | ||
|
||
### I don't see my client or server language listed. Can I still use Statsig? | ||
If none of our current SDKs meet your needs, please let us know via our [Slack community](https://statsig.com/slack)! | ||
If none of our current SDKs meet your needs, please let us know via our [Slack community](https://statsig.com/slack)! | ||
|
||
--- | ||
|
||
### How do I get all exposures for a user? | ||
|
||
If you're interested in historical exposures, the console's [users tab](https://console.statsig.com/users) may server your needs. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo: Change Spotted by Graphite Reviewer |
||
|
||
If you need all hypothetical assignments, you can consider using the `getClientInitializeResponse` server sdk method. Statsig's SDKs should ideally be invoked at the time you're serving an experiment treatment, so that an exposure can be logged. If that's not possible in your case (perhaps you need to pass assignment information to other applications, or to use assignment information as cache-keys for the CDN + edge), this approach could work. | ||
|
||
#### Example of capturing all assignments in Node | ||
|
||
Note, this method is designed to [bootstrap](/client/concepts/bootstrapping) client SDKs, and as such, will hash the experiment and feature keys returned in the payload, obfuscating their names for security. You can provide an optional `hash` parameter, allowing you to disable hashing and capture all values in plain text: [Node](https://github.com/statsig-io/node-js-server-sdk/blob/ea116142221c1aa83b46eff8b5f2292c8f8e2d54/src/StatsigServer.ts#L597), [Python](https://github.com/statsig-io/node-js-server-sdk/blob/ea116142221c1aa83b46eff8b5f2292c8f8e2d54/src/StatsigServer.ts#L597), [Java](https://github.com/statsig-io/java-server-sdk/blob/7443c357c78616142de9257af9e4c55c877ca700/src/main/kotlin/com/statsig/sdk/StatsigServer.kt#L83), [Go](https://github.com/statsig-io/go-sdk/blob/3d7edcbe468efb0fc7a04b0d10202243403dce5f/client.go#L282). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Python SDK link incorrectly points to Spotted by Graphite Reviewer |
||
|
||
```node | ||
const assignments = statsig.getClientInitializeResponse(userObj, "client-key", {hash: "none"}); | ||
``` | ||
|
||
--- | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo: "server" should be "serve" in "may server your needs"
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.