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 a reason attribute to filePUT and fileGET #54244

Merged
merged 2 commits into from
Jul 16, 2018
Merged

Conversation

bpasero
Copy link
Member

@bpasero bpasero commented Jul 13, 2018

This adds a new reason property to filePUT and fileGET that could give a little bit more information why certain file types are so popular over others. Most specifically, for the fileGET case we will be able to filter out those calls that did not originate from a normal editor open. To give an example, when you open a TS file, we also seem to resolve a tsconfig.json file from the TS extension. This file is not opened as editor but still resolved and we count a fileGET for this call. This seems to happen only once though.

@bpasero bpasero added the telemetry Telemetry system issues label Jul 13, 2018
@bpasero bpasero added this to the July 2018 milestone Jul 13, 2018
@bpasero bpasero self-assigned this Jul 13, 2018
@@ -360,10 +360,16 @@ export class TextFileEditorModel extends BaseTextEditorModel implements ITextFil
"fileGet" : {
"mimeType" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"ext": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"path": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
"path": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
"reason": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason here is a number and so comes under measurements not properties in the eventual payload of the telemetry event. So add the "isMeasurement": true in the GDPR annotation here.

Same for the filePUT event

@seanmcbreen
Copy link

I love this idea and the approach (adding a property so we can check the delta) - is there a way to indicate an open based on a folder open that resulted in past windows that resulted in files opening again?

e.g. I closed 15 windows last week (some JSON, Some JS, some Java) and opened that folder this week again (and they were restored)?

You may have accounted for this already but asking anyhow.

Sean

@bpasero
Copy link
Member Author

bpasero commented Jul 14, 2018

@seanmcbreen no, it would all look like a normal editor open. Let's wait to see what the current changes tell us and then tweak this further if we have to.

@ramya-rao-a
Copy link
Contributor

LGTM

@bpasero bpasero merged commit 74880d6 into master Jul 16, 2018
@bpasero bpasero deleted the ben/file-telemetry branch July 16, 2018 05:58
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
telemetry Telemetry system issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants