Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Posting a custom event from an ASP.NET Core web application to Application Insights
// **********************************************
// Fore more information, visit:
// **********************************************
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