Open Giuzzilla opened 1 month ago
I didn't think about it initially and it's quite funny, but the issue seems related to newrelic-admin
CLI to automatically instrument the application :) (I don't run it locally, that's practically the only difference between the setups)
Description
Hey all, thanks for your work and the fantastic product.
I was trying to try out logfire and it works fine locally, but sadly it breaks as soon as I put it on a GKE / Kubernetes pod (on the same docker container). I have a quite standard FastAPI application on Python 3.12.
EDIT: See first comment for the probable cause
The error is the following:
I don't have opentelemetry among my standard dependencies, the opentelemetry version is automatically resolved by poetry when installing logfire with
poetry add logfire[fastapi, psycopg]
. (I use poetry as a package manager & export versions to requirements. The container only sees the exported requirements.txt).A possible issue may be a conflicting protobuf version installed automatically from google cloud dependencies (protobuf==4.25.3)?As an additional info: the same error happens on a similar configuration where I have installed logfire on a Flask app (as opposed to fastapi): as soon as I import any pydantic model it crashes. (In this case, I'm not even importing logfire)
Python, Logfire & OS Versions, related packages (not required)