-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding compiler data to AppInsights (#404)
* Adding compiler data to AppInsights Adding improvements * Adding basic constructor tests, adding parameters * Adding flush method, adding placeholder for dialect * Using envvariable to retrieve AppInsightsKey * Simplifying tests * Addressing PR feedback - 1 * Addressing PR feedback - 2 * Adressing PR feedback - 3 (making target relative) * Adding CompilerData struct to prevent magic strings * Removing data manipulation. let's use the raw data. * Retrieving FileVersion * Updating rules, adding more relevant information * Deleting test * removing redundant code
- Loading branch information
Showing
10 changed files
with
284 additions
and
68 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
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,22 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Microsoft.CodeAnalysis.IL.Sdk | ||
{ | ||
public struct CompilerData | ||
{ | ||
public string Language { get; set; } | ||
public string BinaryType { get; set; } | ||
public string FileVersion { get; set; } | ||
public string CompilerName { get; set; } | ||
public string DebuggingFileName { get; set; } | ||
public string DebuggingFileGuid { get; set; } | ||
public string CompilerBackEndVersion { get; set; } | ||
public string CompilerFrontEndVersion { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return $"{CompilerName},{CompilerBackEndVersion},{CompilerFrontEndVersion},{FileVersion},{BinaryType},{Language},{DebuggingFileName},{DebuggingFileGuid}"; | ||
} | ||
} | ||
} |
Oops, something went wrong.