Initially worked on this with the Connection Strings rule:
Configure API Endpoints: The TelemetryClient object created in TelemetryClientProvider is configured with an instrumentation key from a JSON file, which is used to identify the application to App Insights.
Handle Data Transmission: Sending telemetry data in the ConnectionStringCheck class. When a 'problem' is found in the code, an event is sent to Application Insights with the trackEvent method. Then immediately send the data with the flush method. This isn’t a background service, but it does send data. I tried to work on a background service that calls the trackMemoryUsage method every 60 seconds to track the memory usage of the application.
Azure Application Insights SDK uses HTTPS to securely send data. I don’t need to handle this myself.
This involves
>>>>
To implement background telemetry functionality, follow these steps:
Due: 06-06-2024
Update:
Due: 06-14-2024