Skip to content

Conversation

@DustinCampbell
Copy link
Member

This change adds telemetry tracking for the time elapsed from the point that a request sent to the OmniSharp server to the point that a response is received. To keep telemetry traffic low, we simply track the counts of various ranges of delay times for each type of request.

In addition, I refactored the telemetry a bit in coreclr-debug.ts to ensure that we can share the same TelemetryReporter.

cc @gregg-miskelly, @chuckries, @Pilchie

@gregg-miskelly
Copy link
Contributor

Sorry, that comment was supposed to be for the other PR. I haven't had a chance to look at this one yet. Give me a few minutes...

"windows": {
"program": "./coreclr-debug/debugAdapters/OpenDebugAD7.exe"
},
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
Copy link
Contributor

Choose a reason for hiding this comment

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

We need this. VS Code reads this value.

Copy link
Member Author

Choose a reason for hiding this comment

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

It does? The instructions for VS Code telemetry do not say to add this to the debuggers section. Or, is this used for the debug adapter telemetry (which I'm totally unfamiliar with).

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it is used with debug adapter telemetry.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK -- will add that back. Sorry about that! I wasn't sure because the debugger code just dug it out of package.json.

@gregg-miskelly
Copy link
Contributor

👍

1. Add aiKey back into package.json for debug-adapter telemetry. In addition, to avoid duplicating the aiKey, the code that constructs a TelemetryReporter once again pulls the key from the package.json.
2. A couple of renames for clarity.
@DustinCampbell
Copy link
Member Author

@gregg-miskelly I implemented your feedback. Look better now?

@gregg-miskelly
Copy link
Contributor

👍

@DustinCampbell DustinCampbell merged commit 2c7811a into dotnet:dev Mar 24, 2016
@Pilchie
Copy link
Member

Pilchie commented Mar 24, 2016

👍

@DustinCampbell DustinCampbell deleted the server-telemetry branch April 14, 2016 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants