pydantic / logfire

Uncomplicated Observability for Python and beyond! 🪵🔥
https://docs.pydantic.dev/logfire/
MIT License
1.62k stars 46 forks source link

Show message from logfire platform #216

Open samuelcolvin opened 1 month ago

samuelcolvin commented 1 month ago

Description

In typical usage, the SDK should make a request to the logfire API at process start:

In particular we should use this notify the user if they're using an outdated version of the SDK, but the idea is to make the SDK as "dumb" as possible in case we want to change the logic in future.

This request should not be made if:

adriangb commented 1 month ago

Can we also put this in the front end? I expect most of the requests made from the SDK will be from somewhere like a deployment where no one is looking at it and so they’d have to have a warning set up in logfire itself or something. Easier to show this in a “services summary” page alongside error count, etc.