Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

telemetry: prefix keys for classification in vscode #555

Merged
merged 2 commits into from
May 15, 2020

Conversation

connor4312
Copy link
Member

@connor4312 connor4312 commented May 12, 2020

Opted to remap it inside the telemetry reporter so that this is a single change and doesn't break the exposed interface.

Once this is published and packages updated, microsoft/vscode#97628 can be closed.

@connor4312 connor4312 requested a review from roblourens May 12, 2020 21:27
@roblourens
Copy link
Member

Where are the !-prefixed keys filtered out? Will this cause any issues for VS people looking at telemetry if they want to query for old non-prefixed events and also the new events? @digeff

@connor4312
Copy link
Member Author

connor4312 commented May 14, 2020

They're filtered in VS Code core, as of microsoft/vscode#97627

An alternative approach would be to add some _errorProperties: string[] property to the log message, which would not require changing property names. I can make that change if we think that's better.

@roblourens
Copy link
Member

roblourens commented May 14, 2020

I think this is probably fine but let's clear it with @digeff

@digeff
Copy link
Contributor

digeff commented May 14, 2020

Assuming we get the telemetry properties in the backend, and nothing drops them because they start with !, then this is fine. Do you know if our backend supports an ! at the start of the properties?

@connor4312
Copy link
Member Author

@digeff I'm not sure what backend you guys use on the VS side but I see these properties come through correctly to the VS Code Kusto

@digeff
Copy link
Contributor

digeff commented May 15, 2020

I think we use the same infrastructure, so I'd expect it to work in VS too.

Given that you already wrote this code, I'd merge it as is. I'll insert this into VS and see if I get the new properties. If I find any issues, we can implement the fix in a new PR. What do you think?

@connor4312
Copy link
Member Author

Sounds good

@connor4312 connor4312 merged commit 4056379 into master May 15, 2020
@connor4312 connor4312 deleted the feat/prefix-exception-keys branch May 15, 2020 18:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants