3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
- import type { AppInsightsCore , IExtendedConfiguration , IPerfManager } from "@microsoft/1ds-core-js" ;
6
+ import type { AppInsightsCore , IExtendedConfiguration } from "@microsoft/1ds-core-js" ;
7
7
import type { IChannelConfiguration , IXHROverride , PostChannel } from "@microsoft/1ds-post-js" ;
8
8
import type * as vscode from "vscode" ;
9
9
import type { BaseTelemetryClient } from "./baseTelemetrySender" ;
@@ -21,18 +21,6 @@ const getAICore = async (key: string, vscodeAPI: typeof vscode, xhrOverride?: IX
21
21
const appInsightsCore = new oneDs . AppInsightsCore ( ) ;
22
22
const collectorChannelPlugin : PostChannel = new postPlugin . PostChannel ( ) ;
23
23
24
- // Dummy perf manager to fix memory leaks
25
- const perfManager : IPerfManager = {
26
- create : function ( _src , _payload , _isAsync ) {
27
- return null ;
28
- } ,
29
- fire : function ( _perfEvent ) {
30
- } ,
31
- setCtx : function ( _key , _value ) {
32
- } ,
33
- getCtx : function ( _key ) {
34
- }
35
- } ;
36
24
// Configure the app insights core to send to collector++ and disable logging of debug info
37
25
const coreConfig : IExtendedConfiguration = {
38
26
instrumentationKey : key ,
@@ -41,9 +29,6 @@ const getAICore = async (key: string, vscodeAPI: typeof vscode, xhrOverride?: IX
41
29
loggingLevelConsole : 0 ,
42
30
disableCookiesUsage : true ,
43
31
disableDbgExt : true ,
44
- createPerfMgr : ( ) => {
45
- return perfManager ;
46
- } ,
47
32
disableInstrumentationKeyValidation : true ,
48
33
channels : [ [
49
34
collectorChannelPlugin
0 commit comments