-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Added extension search text length to telemetry #148785
Conversation
This looks ok to me, but I leave the final review to @sandy081 as he would know best if this catches all the cases where we have the @prashantvc did you try this out, if it catches the data you need in all cases. To build VS Code out of source just follow this doc https://github.com/microsoft/vscode/wiki/How-to-Contribute |
Yes, I tried it locally on my machine! It seems to capture the data that I need |
withSearchTextLength(length: number): Query { | ||
return new Query({ ...this.state, searchTextLength: length }); | ||
} | ||
|
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.
This is not the right location to add data for telemetry and this method is not needed. You can add following code
searchtextLength: this.searchText.length
in the following location
source: this.state.source |
and add this property in the telemetry classification here
readonly pageNumber: { classification: 'SystemMetaData'; purpose: 'FeatureInsight' }; |
and
readonly source?: string; |
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.
Thanks for review fixing them now
@prashantvc let us know when this is good for review again. Thank you |
It's ready now |
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.
LGTM - Thanks
Looks good, thanks a lot @prashantvc |
This PR adds the length of search text to the telemetry