Function timeout debugging

Our svelte website is running in a function which calls an API. Sometimes we would get the function timeout error, but its random and not consistently reproducible. We’ve had a hard time finding a connection between a specific timed out function and our API logs.
Would there be some kind of property that is being logged in the netlify function log which is also received in the handler function of the website, that we can then pass to our API client, attach it to any request and add it to the logs, essentially connecting a netlify function call to all API requests?

Nothing by default, but you could always use console.time().

1 Like

Well not that this answered my question but it did help me to move forward, so thank you!

glad it got you on the right track! If you have any further questions, don’t hesitate to follow up.

Happy building :rocket: