Open samuelcolvin opened 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.
Description
In typical usage, the SDK should make a request to the logfire API at process start:
message
andlevel
so warnings can be shown in a different color, or even in a more prominent boxIn 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:
send_to_logfire=False
base_url
is anything other than logfire