getsentry / getsentry/sentry-python

Capture task name in asyncio integration

Offen
#4,851 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Feature Integration: Asyncio Python Spans
Vorherrschende Sprache
Python
Sterne
2.2k
Forks
669
Ø Merge
1 T. 1 Std.
Gemergte PRs (30 T.)
213

Beschreibung

### 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.