Skip to content

Add CallsiteParameter.TASK_NAME to support taskName attribute - #843

Open
aoright wants to merge 3 commits into
hynek:mainfrom
aoright:fix-task-name
Open

aoright wants to merge 3 commits into
hynek:mainfrom
aoright:fix-task-name

Conversation

@aoright

@aoright aoright commented Sep 11, 2026

Copy link
Copy Markdown

This PR adds CallsiteParameter.TASK_NAME which extracts the current asyncio task name. This brings structlog up to parity with standard library logging starting in Python 3.12, where taskName was introduced to LogRecord.

Closes #693.

@codspeed

codspeed Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 10 untouched benchmarks


Comparing aoright:fix-task-name (d7016a9) with main (bf3cfd0)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (73393f3) during the generation of this report, so bf3cfd0 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Any plan to add taskName logging attribute as CallsiteParameter

1 participant