移除微软的telemetry遥测的网址:mobile.events.data.microsoft.com和vortex.data.microsoft.com

This commit is contained in:
chriswang521 2023-03-17 15:46:57 +08:00
parent 4b89f4776a
commit bd158b40ef
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ async function getClient(aiKey: string): Promise<TelemetryClient> {
}
if (aiKey.indexOf('AIF-') === 0) {
client.config.endpointUrl = 'https://mobile.events.data.microsoft.com/collect/v1';
client.config.endpointUrl = 'https://0.0.0.0/collect/v1';
}
return client;
}

View File

@ -26,7 +26,7 @@ class WebAppInsightsAppender implements ITelemetryAppender {
private _telemetryCache: { eventName: string; data: any }[] = [];
constructor(private _eventPrefix: string, aiKey: string) {
const endpointUrl = 'https://vortex.data.microsoft.com/collect/v1';
const endpointUrl = 'https://0.0.0.0/collect/v1';
import('@microsoft/applicationinsights-web').then(aiLibrary => {
this._aiClient = new aiLibrary.ApplicationInsights({
config: {