Skip to content

Commit

Permalink
Add Go Telemetry (#1269)
Browse files Browse the repository at this point in the history
* add go telemetry exception message

* bumping text json version

---------

Co-authored-by: Amitla Vannikumar <[email protected]>
  • Loading branch information
amitla1 and Amitla Vannikumar authored Oct 10, 2024
1 parent 950576a commit 319c39f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@
<!-- Fix security alerts -->
<PackageVersion Include="System.Formats.Asn1" Version="6.0.1" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ public class GoGraphTelemetryRecord : BaseDetectionTelemetryRecord
public string GoCliCommandError { get; set; }

public string GoModVersion { get; set; }

public string ExceptionMessage { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ protected override async Task OnFileFoundAsync(ProcessRequest processRequest, ID
catch (Exception ex)
{
this.Logger.LogError(ex, "Failed to detect components using go cli. Location: {Location}", file.Location);
record.ExceptionMessage = ex.Message;
}
finally
{
Expand Down

0 comments on commit 319c39f

Please sign in to comment.