Relative Content

Tag Archive for pythonazure-functions

Random and duplicate logging for Azure Functions and OpenTelemetry python

Log spamming I recently added OpenTelemetry to my azure function. The reason was because i wanted logging with custom dimensions. But when i added this, my app started spamming random logs around every 3 seconds. These logs can be seen on the image below. Duplicate logging Whenever i log something, the entries show up twice. […]

Is there a clean way to handle reuse of try…except blocks that force early function return?

I’m writing an Azure Functions API, with many different endpoints with similar internal behavior. One major step in each endpoint is to take each naked POST and parse out any and all arguments (comes in as a dictionary) to a custom request object I define that can be further used for all function behavior. Each request object expects certain keys to be present in the request’s data, and I raise exceptions within the object to direct program flow within the main function towards an early response with error code.

Local Azure Function Deployment

I am very green to Azure functions. But I have managed to deploy a function and have it run Successfully when the output is to be created to the current Directory. No issues up to here everything is fine.