question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Report startup failures in the app Log Stream

See original GitHub issue

An 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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
fabiocavcommented, Feb 9, 2022

Since this is in Application Insights today, we should ensure that:

  • Initialization errors have the appropriate level in app insights
  • We log to diagnostic events, so when that comes online, that information is available in the portal

Let’s repro with an initialization erros (perhaps using the setup referenced by @liliankasem) and validate the above requirements.

1reaction
fabiocavcommented, Mar 2, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found