How to clear breadcrumbs when using the Node SDK on an Azure Function?

I have a Node.js Azure Function and I’ve setup Sentry following the example for AWS Lambda (https://docs.sentry.io/platforms/node/serverless/#aws-lambda)

The thing is that it doesn’t seem to work well with Azure Functions. I get breadcrumbs from previous executions instead of only the ones generated by that particular execution.

I have another Azure Function on Python and I could make it work by using the @serverless decorator.

How can I make it work well on Azure Functions? Is there any way to force a cleanup of the previous breadcrumbs at the beginning?

Thanks

1 Like

Same thing is also happening on AWS Lambda with Node.
Did not had the time to look deeper into it, but have a look at local scopes and see if that helps. Also the clear function mentioned.