Skip to content

Capture task name in asyncio integration #4851

@alexander-alderman-webb

Description

Problem Statement

We currently inspect the function name through __name__ or __qualname__ to determine the name attribute on the span in the asyncio task factory. We ignore the name users pass to asyncio.create_task. See https://docs.python.org/3/library/asyncio-task.html.

Solution Brainstorm

Attach the name argument from asyncio.create_task to the span.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions