I have a Blazor server app that is connected to Application Insights as specified here (SDK server approach). One difference, it says to call:
<code>services.AddBlazorApplicationInsights("INSERT YOUR INSTRUMENTATION KEY HERE");
</code>
<code>services.AddBlazorApplicationInsights("INSERT YOUR INSTRUMENTATION KEY HERE");
</code>
services.AddBlazorApplicationInsights("INSERT YOUR INSTRUMENTATION KEY HERE");
I have (I assume the API has changed):
<code>builder.Logging.AddApplicationInsights();
builder.Services.AddApplicationInsightsTelemetry();
</code>
<code>builder.Logging.AddApplicationInsights();
builder.Services.AddApplicationInsightsTelemetry();
</code>
builder.Logging.AddApplicationInsights();
builder.Services.AddApplicationInsightsTelemetry();
where the key is set via APPINSIGHTS_INSTRUMENTATIONKEY.
It’s running fine and I can go to Application Insights | Investigate and drill in to find that a query to my DB is taking 783ms.
But I can’t get the specific query string for that query. How can I get that?