opentelemetry-python-contrib icon indicating copy to clipboard operation
opentelemetry-python-contrib copied to clipboard

[BugFix] Close issue #1195, "Invalid type Exchange for attribute value. Expected one of bool, str, bytes, int, float or a sequence of those types" warning when Celery task runs another celery task

Open Heatstealer opened this issue 3 years ago • 7 comments
trafficstars

Description

There are a lot of serialization errors when celery task run another celery task in case when you are using custom Exchange and custom Queue. Span tags could be only bool, str, bytes, int, float.

Fixes #https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1195

Type of change

  • [x] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Tested on the environment where issue had happened. Added unit test

Does This PR Require a Core Repo Change?

  • [ ] Yes. - Link to PR:
  • [x] No.

Checklist:

  • [x] Followed the style guidelines of this project
  • [x] Changelogs have been updated
  • [x] Unit tests have been added
  • [ ] Documentation has been updated

Heatstealer avatar Jul 18 '22 13:07 Heatstealer