getsentry / getsentry/sentry-javascript
Feature Flags: Support for the `flags` package
- 主要语言
- TypeScript
- 星标
- 8.7k
- 派生
- 1.8k
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 515
描述
### Description
The [`flags` npm package]() from vercel is getting quite popular:

Since Sentry now has support for capturing feature flags from the client, so that events and spans are tagged with the relevant flags.
This ticket suggesting expanding the JS support for the `flags` package.
@dferber90 from Vercel created a gist where we can get a list of flags evaluated in a way that supports streaming:
[https://gist.github.com/dferber90/da452f324bb4a06d649a2000a5c7d881]()
Whether we create a `@sentry/flags` or add it to the core so we can reuse it more easily across other frameworks might depend on the bundle size impact, so that needs to be tested.
This bit could become a core part of the SDK itself though that could be part of a separate task:
[https://github.com/getsentry/sentry-javascript/blob/a67ebc4f56fd20259bffbe194e8e92e968589c12/packages/browser/src/utils/featureFlags.ts#L20-L34]()
贡献指南
评估
这个 Issue 还没有评估数据。