File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
extensions/ql-vscode/src/common/vscode Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { showBinaryChoiceWithUrlDialog } from "./dialog";
2020import type { RedactableError } from "../errors" ;
2121import type { SemVer } from "semver" ;
2222import type { AppTelemetry } from "../telemetry" ;
23+ import { EnvelopeTelemetry } from "applicationinsights/out/Declarations/Contracts" ;
2324
2425// Key is injected at build time through the APP_INSIGHTS_KEY environment variable.
2526const key = "REPLACE-APP-INSIGHTS-KEY" ;
@@ -132,9 +133,9 @@ export class ExtensionTelemetryListener
132133 const client = this . reporter [ "appInsightsClient" ] as TelemetryClient ;
133134 if ( client ) {
134135 // add a telemetry processor to delete unwanted properties
135- client . addTelemetryProcessor ( ( envelope : any ) => {
136+ client . addTelemetryProcessor ( ( envelope : EnvelopeTelemetry ) => {
136137 tagsToRemove . forEach ( ( tag ) => delete envelope . tags [ tag ] ) ;
137- const baseDataProperties = ( envelope . data as any ) ? .baseData ?. properties ;
138+ const baseDataProperties = envelope . data . baseData ?. properties ;
138139 if ( baseDataProperties ) {
139140 baseDataPropertiesToRemove . forEach (
140141 ( prop ) => delete baseDataProperties [ prop ] ,
You can’t perform that action at this time.
0 commit comments