Skip to content

Instantly share code, notes, and snippets.

@chrismoutray
chrismoutray / .NETMongoApplicationInsightsExamples.cs
Created October 21, 2021 08:27 — forked from billpratt/.NETMongoApplicationInsightsExamples.cs
Examples of how to track .NET Mongodb queries in Application Insights
class Program
{
static void Main(string[] args)
{
var telemetryClient = new TelemetryClient(new TelemetryConfiguration("APP_INSIGHTS_KEY"));
var mongoConnectionString = "mongodb://localhost:27017/test";
TrackMongoByEvents(mongoConnectionString, telemetryClient);
TrackMongoManually(mongoConnectionString, telemetryClient);
@chrismoutray
chrismoutray / MinimalAPIs.md
Created September 27, 2021 08:14 — forked from davidfowl/MinimalAPIs.md
Minimal APIs at a glance