I have a function that auto-increments a value in a cosmosdb. I can check by going to the website that fetches this value and see that it is growing: Universal Time Units (TU): [14010]
. So I know that the function is executing. However, the function does show that it is executing anywhere.
It is clearly running. Why can’t I get an execution here? Does this chart mean something other that what I think it means?
The deployment clearly shows that it register my functions in the code and deployed them
however, it then says 0 functions loaded
. Again, I can confirm that the function is running as I can go to the website and see the value updating.
Furthermore, the file tab shows that many files aren’t there:
Again, the files must be there because otherwise the function would crash and not update the value. It would fail when importing them.
Lastly, when I try to query in application insights, I can’t see any of the traces that would be there if the application were running:
traces
| order by timestamp desc
| limit 50
Returns no values. There are system logs:
4/27/2024, 6:48:52.944 PM
No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
4/27/2024, 6:48:52.942 PM
Generating 0 job function(s)
4/27/2024, 6:48:52.942 PM
0 functions loaded
4/27/2024, 6:48:52.941 PM
A function allow list has been specified, excluding all but the following functions: [resolveActionEvents, actionResolverTimer, ututimer]
4/27/2024, 6:48:52.941 PM
1 functions found (Custom)
4/27/2024, 6:48:52.941 PM
Reading functions metadata (Custom)
4/27/2024, 6:48:52.938 PM
Loading functions metadata
But none of the logs from the function that I can confirm is running. I need to use the logs in some of the other functions that I’m unable to confirm elsewhere. What is the correct way to confirm the execution of the functions?