logfire icon indicating copy to clipboard operation
logfire copied to clipboard

weird behaviour with uvicorn

Open samuelcolvin opened this issue 10 months ago • 2 comments

Description

If I run uvicorn normally (e.g. uv run uvicorn app:app), I see two logs, one from logfire and one from uvicorn

16:11:29.487 GET /
INFO:     172.17.0.1:59302 - "GET / HTTP/1.1" 404 Not Found

If I run uvicorn with --log-level warning, then I see neither. This seems wrong.

Python, Logfire & OS Versions, related packages (not required)

logfire="3.5.3"
platform="macOS-14.6.1-arm64-arm-64bit-Mach-O"
python="3.13.0 (main, Oct 16 2024, 08:05:40) [Clang 18.1.8 ]"
[related_packages]
requests="2.32.3"
pydantic="2.10.6"
protobuf="5.29.3"
rich="13.9.4"
executing="2.2.0"
opentelemetry-api="1.30.0"
opentelemetry-exporter-otlp-proto-common="1.30.0"
opentelemetry-exporter-otlp-proto-http="1.30.0"
opentelemetry-instrumentation="0.51b0"
opentelemetry-instrumentation-asgi="0.51b0"
opentelemetry-instrumentation-httpx="0.51b0"
opentelemetry-instrumentation-starlette="0.51b0"
opentelemetry-instrumentation-system-metrics="0.51b0"
opentelemetry-proto="1.30.0"
opentelemetry-sdk="1.30.0"
opentelemetry-semantic-conventions="0.51b0"
opentelemetry-util-http="0.51b0"

samuelcolvin avatar Feb 08 '25 16:02 samuelcolvin

I can't reproduce. It works fine here.

❯ uv run uvicorn main:app --reload --log-level warning
Logfire project URL: https://logfire.pydantic.dev/kludex/potato
08:40:56.575 GET /
08:40:56.579   FastAPI arguments

Kludex avatar Feb 09 '25 08:02 Kludex

@Kludex are you actually going to work on this? If we can't repro, should we close?

alexmojaki avatar Sep 25 '25 23:09 alexmojaki