[BUG] Application Insights logger: Invalid type dict for attribute 'custom_dimensions' value. #214
Open
Description
Describe the bug
After each log entry, an unhandled error is returned:
Invalid type dict for attribute 'custom_dimensions' value. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or a sequence of those types
.
This error appears to be stemming from backend\src\logger\application_insights_workflow_callbacks.py
, as the
extra
attribute of self._logger.info
does not accept a dict for custom_dimensions
.
To Reproduce
Steps to reproduce the behavior:
- Start an indexing job.
- View the logs in Azure Monitor.
- Note the errors.
Expected behavior
Errors are not logged to the console.