Hi @Adrian Campos ,
In addition to Silvia Wibowo response,
Go to your Static Web App in the Azure Portal->Settings ->Configuration. Confirm that the APPINSIGHTS_INSTRUMENTATIONKEY or APPLICATIONINSIGHTS_CONNECTION_STRING is correctly set. Navigate to Monitoring ->Diagnostic Settings and ensure that logs are being sent to your Application Insights instance. Make sure to enable Request, Dependency, and Exception logs to get detailed telemetry. Application Insights primarily tracks backend requests, so ensure your API routes are correctly defined in your routes.json file. Confirm that the API is reachable by testing the endpoints directly.
Additionally,
If no data is visible in Application Insights, Check if the Static Web App is correctly connected to the API. Make sure the API is returning responses with appropriate status codes (e.g., 200 for success). Investigate the Live Metrics Stream to see if requests are reaching the backend. Ensure the Application Insights resource is not misconfigured due to the log workspace needing repair. Navigate to Application Insights ->Logs. If prompted, follow the repair steps to re-establish the connection.
If you have any further assistant, do let me know.
If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.