Skip to content

logfire run always suggests requests, sqlite3, urllib #1296

@DouweM

Description

@DouweM

Understandable, because sqlite3 and urllib are part of the standard library and requests comes with opentelemetry, but still confusing because people often won't be using them. I saw sqlite3 and initially though some random package was pulling it in before I realized it was stdlib.

@Kludex Should we check if the script contains import <package> and only include them then? In multi-file projects, people are even less likely to use them.

# script.py
print('Hello, world!')
uvx logfire run script.py

╭──────────────────────────────────────────────────────────────── Logfire Summary ────────────────────────────────────────────────────────────────╮
│                                                                                                                                                 │
│  Your instrumentation checklist:                                                                                                                │
│                                                                                                                                                 │
│  ☐ requests (need to install opentelemetry-instrumentation-requests)                                                                            │
│  ☐ sqlite3 (need to install opentelemetry-instrumentation-sqlite3)                                                                              │
│  ☐ urllib (need to install opentelemetry-instrumentation-urllib)                                                                                │
│                                                                                                                                                 │
│                                                                                                                                                 │
│  To install all recommended packages at once, run:                                                                                              │
│                                                                                                                                                 │
│  uv add opentelemetry-instrumentation-requests opentelemetry-instrumentation-sqlite3 opentelemetry-instrumentation-urllib                       │
│                                                                                                                                                 │
│  ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────  │
│                                                                                                                                                 │
│  To hide this summary box, use: logfire run --no-summary.                                                                                       │
│                                                                                                                                                 │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions