kezhenxu94 opened a new issue #5770:
URL: https://github.com/apache/skywalking/issues/5770
Currently the decorator `@trace` only support plain functions. Decorating
functions with `async` makes the trace hierarchy incorrect.
```python
@runnable()
async def test1(self):
return '1'
@runnable()
async def test2(self):
return self.test1()
def test(self):
asyncio.run(self.test2())
```
this generates the trace like this

while expectation is

@taskmgr , if you're interested in this, comment here and I can assign to
you, FYI @WillemJiang
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]