Skip to content

Commit

Permalink
Quiet some noisy telemetry (#1434)
Browse files Browse the repository at this point in the history
Co-authored-by: Stephen Weatherford <[email protected]>
  • Loading branch information
StephenWeatherford and Stephen Weatherford authored Jan 14, 2022
1 parent b0e6539 commit 55220a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/AzureRMTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1884,6 +1884,7 @@ export class AzureRMTools implements IProvideOpenedDocuments {
private async provideDocumentLinks(textDocument: vscode.TextDocument, token: vscode.CancellationToken): Promise<vscode.DocumentLink[] | undefined> {
return await callWithTelemetryAndErrorHandling('provideDocumentLinks', async (actionContext) => {
actionContext.errorHandling.rethrow = true;
actionContext.telemetry.suppressIfSuccessful = true;

const dt = this.getOpenedDeploymentTemplate(textDocument);
if (dt) {
Expand Down
1 change: 1 addition & 0 deletions src/languageclient/startArmLanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ async function isFile(pathPath: string): Promise<boolean> {

function onNotifyTemplateGraph(args: INotifyTemplateGraphArgs): void {
callWithTelemetryAndErrorHandlingSync('notifyTemplateGraph', async (context: IActionContext) => {
context.telemetry.suppressIfSuccessful = true;
_notifyTemplateGraphAvailableEmitter.fire(<INotifyTemplateGraphArgs & ITelemetryContext>Object.assign({}, context.telemetry, args));
});
}
Expand Down

0 comments on commit 55220a1

Please sign in to comment.