GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — `sentry_sdk.init()` slowed by module-level `package_version("mcp")` scanning all installed distributions (2.64.0) · Issue #6769 · getsentry/sentry-python Closed DescriptionHow do you use Sentry?Sentry Saas (sentry.io) Version2.64.0 Steps to ReproduceIn any environment with a few hundred installed packages and import time from sentry_sdk.integrations import DidNotEnable t = time.perf_counter() try: import sentry_sdk.integrations.mcp except DidNotEnable: pass print(f'{time.perf_counter() - t:.3f}s') With ~200 installed distributions: 0.202s on 2.64.0 vs 0.052s on 2.63.0. The cost scales with the number of installed distributions.
Expected ResultWhen Actual Result#6583 added a module-level call at the top of MCP_PACKAGE_VERSION = package_version("mcp")
This mainly hurts short-lived processes that call Suggested fix: move the Activity
MetadataMetadataAssigneesProjects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |