How to Monitor Performance of Message Consumer Applications

sohlae 90 Reputation points
2024-12-19T12:23:05.6566667+00:00

I have developed a background service in .NET 8.0 which is responsible for receiving messages from an Azure Service Bus queue. The Program.cs has Application Insights configured as you can see in the code snippet below.

Is it possible to see in Application Insights the average response time of my background service? In the Performance section I can only see response times from API calls.

services.AddApplicationInsightsTelemetryWorkerService(new ApplicationInsightsServiceOptions

{

ConnectionString = "InstrumentationKey=...",

EnableAdaptiveSampling = false

});

Any guidance will be much appreciated!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,396 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,007 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.