Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traces lost after long await? #2837

Open
spplante opened this issue Dec 11, 2023 · 0 comments
Open

Traces lost after long await? #2837

spplante opened this issue Dec 11, 2023 · 0 comments

Comments

@spplante
Copy link

spplante commented Dec 11, 2023

Not sure if this is a bug related to Azure Insights or Function Apps, but I am using an Azure Function v4 in .net 6.0 and I am randomly loosing all logs after awaiting for an async method that takes roughly +- 8 minutes to complete.

When executing the function using the Test/Run button in Azure, I can see all logs correctly in the live console, however in both the Monitor page or Azure Insights the traces after the long await don't exist.

I validated that there is 0% sampling in Azure Insights going on.

It looks like after a certain amount of time Insights just gives up and goes to sleep. I have had one successfull execution where 100% of the traces were there, in this case the long operation took +- 6 min instead of 8 minutes, not sure if it has something to do with this...

Any idea what's going on?

@spplante spplante changed the title Traces lost when Task.Delay is used in code? Traces lost after long await? Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant