-
Notifications
You must be signed in to change notification settings - Fork 140
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 feature flags to telemetry events #1625
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1625 +/- ##
=======================================
Coverage 90.87% 90.87%
=======================================
Files 126 126
Lines 4626 4627 +1
Branches 1034 1033 -1
=======================================
+ Hits 4204 4205 +1
Misses 422 422
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
@@ -80,6 +80,7 @@ export function startTelemetry(configuration: Configuration): Telemetry { | |||
format_version: 2 as const, | |||
}, | |||
telemetry: event as any, // https://github.com/microsoft/TypeScript/issues/48457 | |||
experimental_features: getExperimentalFeatures(), |
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.
💭 thought: should not we put that on the schema?
if (arrayLike instanceof Set) { | ||
arrayLike.forEach((item) => array.push(item)) | ||
} else { |
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.
👏 praise: Nice! Things we should do to support IE...
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.
💬 suggestion: Remove the setToArray
function from this file and replace usages with arrayFrom
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.
👏 praise: impressive work!! LGTM
Motivation
Since we use standard feature flags (cf: https://github.com/DataDog/web-ui/pull/60432) we can now sample them.
This PR adds the enabled FF to the telemetry event to be able to filter on them.
Changes
Adds feature flag to telemetry event
Testing
I have gone over the contributing documentation.