Posting a custom event from an ASP.NET Core web application to Application Insights
// ********************************************** | |
// Fore more information, visit: | |
// https://blog.hildenco.com/2020/03/adding-application-insights-telemetry.html | |
// ********************************************** | |
public IActionResult Privacy() | |
{ | |
_telemetry.TrackEvent($"Privacy requested @ {DateTime.UtcNow} UTC"); | |
return View(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment