getsentry / getsentry/sentry-python

Capture task name in asyncio integration

Open
#4,851 1 comment 0 reactions 0 assignees View on GitHub
Feature Integration: Asyncio Python Spans
Dominant language
Python
Stars
2.2k
Forks
669
Avg merge
1d 1h
Merged PRs (30d)
213

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.