Skip to content

system-metrics instrumentation does not work with psutil 7.0.0 #3272

@puckpuck

Description

@puckpuck

Describe your environment

OS: python:3.12-slim-bookworm image
Python version: 3.12
Package version: 0.51b0

What happened?

Upgraded psutil to 7.0.0, and pip install failed.

We did this for the OpenTelemetry Demo in the load-generator service.

Steps to Reproduce

add/set psutil==7.0.0 in an OpenTelemetry instrumented app's requirements.txt file and run pip install -r requirements.txt

Expected Result

Do not block on psutil < 7

Actual Result

psutil version 7 or greater is not allowed

Additional context

I found this PR which added the "psutil >= 5.9.0, < 7" entry in the pyproject.toml dependencies section. There was no note in that PR about why psutil 7+ should not be allowed.

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions