-
Notifications
You must be signed in to change notification settings - Fork 350
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
Use telemetry wrapper to unify BI format. #417
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
andxu
reviewed
Sep 10, 2018
src/commands.ts
Outdated
const duration = Date.now() - startAt; | ||
sendOperationEnd(operationId, delegateCommand, duration, error); | ||
} | ||
|
||
// TODO: need to handle error and trace telemetry |
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.
remove todo
andxu
approved these changes
Sep 10, 2018
UPDATE:
This PR focus on opStart/opEnd/error. Will send step in future after related API implemented in wrapper. |
testforstephen
requested changes
Sep 14, 2018
src/extension.ts
Outdated
await instrumentOperation("activation", initializeExtension)(context); | ||
} | ||
|
||
export function initializeExtension(operationId: string, context: vscode.ExtensionContext) { |
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.
no need to export.
testforstephen
approved these changes
Sep 14, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Instrument
initializeExtension
where code for activation is located.Use a helper function
instrumentAndRegisterCommand
to register VSCode commands.Manually instrument
provideDebugConfigurations
andresolveDebugConfiguration
as they are top-level operations in this extension.Telemetry data entry