Skip to content

feat(profiling): add support for Python 3.11#4511

Merged
brettlangdon merged 5 commits into
DataDog:1.xfrom
jd:profiling/py311
Dec 10, 2022
Merged

feat(profiling): add support for Python 3.11#4511
brettlangdon merged 5 commits into
DataDog:1.xfrom
jd:profiling/py311

Conversation

@jd

@jd jd commented Nov 9, 2022

Copy link
Copy Markdown
Contributor

This fixes the profiler to support Python 3.11.

The main issues came from the stack exception profiler where:

  1. The exc_value was not checked entirely, casting in a wrong type
  2. A reference leak to the exc_tb could happen

This also changes the minimum version of tenacity to 7 so it does not use the
deprecated asyncio.coroutine anymore.

@jd
jd requested a review from a team as a code owner November 9, 2022 16:50
@jd jd mentioned this pull request Nov 9, 2022
14 tasks
@jd
jd force-pushed the profiling/py311 branch 5 times, most recently from 7826625 to 2f8f38e Compare November 9, 2022 17:35

@Yun-Kim Yun-Kim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 147/148 in tox.ini missing Python 3.11 specification.

@jd
jd force-pushed the profiling/py311 branch from 2f8f38e to 3bc22ea Compare November 10, 2022 10:25

@Kyle-Verhoog Kyle-Verhoog left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a question about the tenacity change

Comment thread releasenotes/notes/profiling-python-3.11-40056cf7a4313cec.yaml Outdated
Comment thread setup.py Outdated
@jd
jd force-pushed the profiling/py311 branch from 3bc22ea to 1da23f4 Compare November 14, 2022 14:10
Kyle-Verhoog
Kyle-Verhoog previously approved these changes Nov 14, 2022
@mergify

mergify Bot commented Nov 17, 2022

Copy link
Copy Markdown
Contributor

@jd this pull request is now in conflict 😩

@mergify mergify Bot added the conflicts label Nov 17, 2022

@mabdinur mabdinur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit otherwise LGTM

Comment thread releasenotes/notes/profiling-python-3.11-40056cf7a4313cec.yaml Outdated

@Yun-Kim Yun-Kim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, should be good to merge once the conflict is fixed and the release note is changed profiler --> profiling 😄

Comment thread tox.ini Outdated
This fixes the profiler to support Python 3.11.

The main issues came from the stack exception profiler where:
1. The exc_value was not checked entirely, casting in a wrong type
2. A reference leak to the exc_tb could happen

This also changes the minimum version of tenacity to 7 so it does not use the
deprecated asyncio.coroutine anymore.
@jd
jd force-pushed the profiling/py311 branch from 5b91eed to 5f3e1d6 Compare December 5, 2022 12:38
Comment thread releasenotes/notes/profiling-python-3.11-40056cf7a4313cec.yaml Outdated
Kyle-Verhoog
Kyle-Verhoog previously approved these changes Dec 6, 2022
@slallema

slallema commented Dec 9, 2022

Copy link
Copy Markdown

I really look forward having the profiler for python 3.11! when can I expect this released ?

Comment thread releasenotes/notes/profiling-python-3.11-40056cf7a4313cec.yaml Outdated
@brettlangdon
brettlangdon enabled auto-merge (squash) December 9, 2022 23:54
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.

6 participants