Skip to content

Patched task factory in AsyncioIntegration loses task result. #1881

Description

@tkukushkin

How do you use Sentry?

Sentry Saas (sentry.io)

Version

1.14.0

Steps to Reproduce

import asyncio
import sentry_sdk
from sentry_sdk.integrations.asyncio import AsyncioIntegration

async def add(a, b):
    return a + b

async def main():
    sentry_sdk.init('dsn', integrations=[AsyncioIntegration()])
    result = await asyncio.create_task(add(1, 2))
    assert result == 3, result

asyncio.run(main())

Expected Result

No AssertionError.

Actual Result

    assert result == 3, result
AssertionError: None

Patched task factory always loses task result.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions