Skip to content

[BUG] Application Insights logger: Invalid type dict for attribute 'custom_dimensions' value. #214

Open
@cf-rdegregory

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.

image

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:

  1. Start an indexing job.
  2. View the logs in Azure Monitor.
  3. Note the errors.

Expected behavior
Errors are not logged to the console.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions