Skip to content

fix(profiler): implement __aenter__ and __aexit__ for asyncio.Lock (backport #3676) - #3684

Closed
mergify[bot] wants to merge 1 commit into
1.0from
mergify/bp/1.0/pr-3676
Closed

mergify[bot] wants to merge 1 commit into
1.0from
mergify/bp/1.0/pr-3676

Conversation

@mergify

@mergify mergify Bot commented May 6, 2022

Copy link
Copy Markdown
Contributor

This is an automatic backport of pull request #3676 done by Mergify.
Cherry-pick of 3bc5271 has failed:

On branch mergify/bp/1.0/pr-3676
Your branch is up to date with 'origin/1.0'.

You are currently cherry-picking commit 3bc52714.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   ddtrace/profiling/collector/_lock.py
	new file:   releasenotes/notes/asyncio-lock-14b10fa0f1e43ed3.yaml

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	deleted by us:   tests/profiling/collector/test_asyncio.py

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

`wrapt.ObjectProxy` does not implement these methods (see GrahamDumpleton/wrapt#73) so we need to add them to the `asyncio.Lock` proxy.

(cherry picked from commit 3bc5271)

# Conflicts:
#	tests/profiling/collector/test_asyncio.py
@Kyle-Verhoog

Copy link
Copy Markdown
Member

the asyncio lock profiling was not included in 1.0

@Kyle-Verhoog
Kyle-Verhoog deleted the mergify/bp/1.0/pr-3676 branch May 6, 2022 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants