Skip to content

Conversation

lukeina2z
Copy link
Contributor

@lukeina2z lukeina2z commented Oct 14, 2025

Description

The generate_instrumentation_bootstrap.py script was failing with a ruff linting error (PLC0415: import should be at top-level) when checking the auto_instrumentation module.

Fixes # (issue)

Add noqa comment to suppress this error for the gevent monkey patch import, which is intentionally inside a try-except block for conditional loading. This allows the bootstrap generation script to complete successfully.

Error while running generate_instrumentation_bootstrap.py

pyerror2

Skip Changelog

The generate_instrumentation_bootstrap.py script was failing with a
ruff linting error (PLC0415: import should be at top-level) when
checking the auto_instrumentation module.

Add noqa comment to suppress this error for the gevent monkey patch
import, which is intentionally inside a try-except block for
conditional loading. This allows the bootstrap generation script
to complete successfully.
@lukeina2z lukeina2z requested a review from a team as a code owner October 14, 2025 03:25
@lukeina2z lukeina2z marked this pull request as draft October 14, 2025 03:26
@lukeina2z lukeina2z marked this pull request as ready for review October 14, 2025 03:27
@xrmx xrmx added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Oct 15, 2025
@xrmx
Copy link
Contributor

xrmx commented Oct 15, 2025

@lukeina2z any idea on why our tooling does not raise that?

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

Labels

Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants