Skip to content

fix: annotate always-detected packages in logfire run suggestions#1736

Open
nightcityblade wants to merge 2 commits intopydantic:mainfrom
nightcityblade:fix/issue-1296
Open

fix: annotate always-detected packages in logfire run suggestions#1736
nightcityblade wants to merge 2 commits intopydantic:mainfrom
nightcityblade:fix/issue-1296

Conversation

@nightcityblade
Copy link

Fixes #1296

Problem

logfire run always suggests installing instrumentation for sqlite3, urllib, and requests because:

  • sqlite3 and urllib are stdlib modules (always available)
  • requests is a dependency of OpenTelemetry itself (always in the environment)

This is confusing for users who aren't actually using these packages.

Solution

Added an asterisk (*) annotation to packages that are always detected (stdlib or OTel dependencies), with a footnote explaining they can be safely ignored if not used in the user's code.

Example output:

☐ flask (need to install opentelemetry-instrumentation-flask)
☐ sqlite3* (need to install opentelemetry-instrumentation-sqlite3)

* Always detected (stdlib or OpenTelemetry dependency) — ignore if not used in your code.

This follows the suggestion from @DouweM in the issue discussion.

…estions

Mark sqlite3, urllib (stdlib) and requests (OTel dependency) with an asterisk
and a footnote in the recommendation output, so users know these are always
detected and can be safely ignored if not used in their code.
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 0 potential issues.

View 2 additional findings in Devin Review.

Open in Devin Review

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 0 new potential issues.

View 3 additional findings in Devin Review.

Open in Devin Review

@alexmojaki alexmojaki requested review from DouweM and Kludex February 27, 2026 20:08
@Kludex Kludex removed their request for review February 28, 2026 08:33
@nightcityblade
Copy link
Author

Gentle ping — any thoughts on this? Let me know if any changes are needed.

@alexmojaki
Copy link
Contributor

CI should pass

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.

logfire run always suggests requests, sqlite3, urllib

2 participants