Report startup failures in the app Log Stream
See original GitHub issueAn example surfacing logs properly is this issue where the worker crashes and the host restarts, but this information is not logged to users as errors. The host process was not able to start the worker process and it logged the startup exception as information
Customer comment: “the startup failures are being reported to Insights (and not appearing at all in the Log Stream of the app). It should’ve been logged as an error and it should also have appeared in the Log Stream.”
// Scope: clusters/wawscus/databases/wawsprod
let st = datetime(2021-12-09T13:26:43.8280758) - 5m;
let et = datetime(2021-12-09T13:26:43.8280758Z) + 5m;
FunctionsLogs
// | where PreciseTimeStamp > ago(30d)
| where PreciseTimeStamp between (st..et)
| where AppName =~ "testesgerais-dev"
| project-reorder PreciseTimeStamp, Summary, FunctionName, Details, HostVersion
User story: Log startup failures in the app Log Stream
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Troubleshoot ASP.NET Core on Azure App Service and IIS
This article provides information on common app startup errors and ... The Azure App Services Log streams logging information as it occurs.
Read more >Log Stream of App Service stopped working unexpectedly
When I uploaded on Azure and enabled to Azure WebApp Diagnostics initially it was showing all logs properly in Log Stream.
Read more >Debugging Lifecycle Configurations - Amazon SageMaker
To find the logs for a specific app, search Log Streams using the following format: ... Failed to create SageMaker Studio due to...
Read more >View log messages in Console on Mac
Use Console to view log messages collected by your computer and other connected devices. These log messages may deal with system events, dialog...
Read more >The Top 12 Reasons Startups Fail
Discover the top 12 reasons for startup failure — from lack of product-market fit to disharmony on the team to a flawed business...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Since this is in Application Insights today, we should ensure that:
Let’s repro with an initialization erros (perhaps using the setup referenced by @liliankasem) and validate the above requirements.
We need to continue investigation here.
@satvu has the repros, so our next step should be to identify if there’s an issue with the host (meaning, the worker wrote the failure details to stdout/error, and the host did not appropriately log them), or if there’s an issue with the worker implementation.