getsentry / getsentry/sentry-python

Capture task name in asyncio integration

Aperta
#4,851 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Feature Integration: Asyncio Python Spans
Lingua principale
Python
Stelle
2.2k
Fork
669
Merge medio
1g 40m
PR unite (30g)
212

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.