osprofiler @trace decorator fails with unicode

Bug #1607848 reported by Paul Karikh
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
osprofiler
Confirmed
High
Tovin Seven

Bug Description

@trace decorator fails on this line: https://github.com/openstack/osprofiler/blob/master/osprofiler/profiler.py#L150
when function args have unicode in their argument.
In my case it was the following dict:
{"name": u'\u4e91\u89c4\u5219',
 "status": "ACTIVE",
 "tenant_id": tenant3.id,
 "server_id": "3"}
Full dataset is here: https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/test_data/nova_data.py#L454
Without @profiler.trace() Horizon tests work fine so looks like there could be an issue in decorator.

Dina Belova (dbelova)
Changed in osprofiler:
status: New → Confirmed
Dina Belova (dbelova)
Changed in osprofiler:
importance: Undecided → High
Tovin Seven (tovin07)
Changed in osprofiler:
status: Confirmed → In Progress
status: In Progress → Confirmed
Tovin Seven (tovin07)
Changed in osprofiler:
assignee: nobody → Tovin Seven (tovin07)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on osprofiler (master)

Change abandoned by Tovin Seven (<email address hidden>) on branch: master
Review: https://review.openstack.org/448883

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.