Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Stackdriver Error Reporting Sample

A sample demonstrating how to invoke Stackdriver Error Reporting from C#.

This sample requires .NET Core 2.0 or later. That means using Visual Studio 2017, Visual Studio Code, or the command line. Visual Studio 2015 users can use this older sample.

Links

Build and Run

  1. Follow the set-up instructions in the documentation.

  2. Enable APIs for your project. Click here to visit Cloud Platform Console and enable the Stackdriver Error Reporting API.

  3. From a Powershell command line, set the "GOOGLE_PROJECT_ID" environment variable to id of the project you created in step 1.

    PS C:\...\dotnet-docs-samples\error-reporting\api\ErrorReportingSample> $env:GOOGLE_PROJECT_ID="your project id"
  4. And run the ErrorReportingSample application:

    PS C:\...\dotnet-docs-samples\error-reporting\api\ErrorReportingSample> dotnet run
  5. View your error in the Cloud Console UI

Contributing changes

Licensing