-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send assembly references to Telemetry #493
Conversation
private const string SummaryEventName = "AnalysisSummary"; | ||
|
||
private readonly int ChunkSize = 8192; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private const string CompilerEventName = "CompilerInformation"; | ||
private const string CommandLineEventName = "CommandLineInformation"; | ||
private const string AssemblyReferencesEventName = "AssemblyReferencesInformation"; | ||
private const string SummaryEventName = "AnalysisSummary"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ | ||
Initialize(appInsightsKey); | ||
this.appInsightsRegistered = true; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can u remove this new line? #Closed
s_sessionId = TelemetryEnabled ? Guid.NewGuid().ToString() : null; | ||
ChunkSize = chunkSize; | ||
|
||
if (!TelemetryEnabled) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the code in below block is to initialize a TelemetryClient instance to be used to send telemetry data.
if caller already passed in the TelemetryClient instance in constructor, we don't need to initialize a new instance.
Added the TelemetryClient / Configuration as constructor parameter so that we can overwrite the built-in instances. The unit tests can pass in mock client/configuration for testing purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, since we are creating the compilerdatalogger for each object, we dont need to keep creating an instance of the telemetry.
with that, once it is initialized, it won't create again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read assembly references from managed assemblies and send to telemetry by chunks.