-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified file structure to match jupyter repo
- Loading branch information
Showing
6 changed files
with
57 additions
and
123 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/*--------------------------------------------------------- | ||
* Copyright (C) Microsoft Corporation. All rights reserved. | ||
*--------------------------------------------------------*/ | ||
|
||
import * as os from 'os'; | ||
import { BaseTelemetryReporter } from './baseCiTelemetryReporter'; | ||
import { TelemetryAppender } from './TelemetryAppender'; | ||
import { appInsightsClientFactory } from './appInsightsClientFactory.node'; | ||
|
||
/** | ||
* An isolated wrapper for an Application Insights client that is specifically for sending telemetry during CI jobs. | ||
* This won't run on a users machine, so there is no need to check for opt-in status. | ||
*/ | ||
export class CiTelemetryReporter extends BaseTelemetryReporter { | ||
constructor(extensionId: string, extensionVersion: string, key: string, firstParty: boolean) { | ||
const appender = new TelemetryAppender(key, (key) => appInsightsClientFactory(key)); | ||
if (key && key.indexOf('AIF-') === 0) { | ||
firstParty = true; | ||
} | ||
super( | ||
extensionId, | ||
extensionVersion, | ||
appender, | ||
{ | ||
release: os.release(), | ||
platform: os.platform(), | ||
architecture: os.arch() | ||
}, | ||
firstParty | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.