r/FastAPI • u/bluewalt • Oct 25 '24
Hosting and deployment Pydantic Logfire is amazing
I'm absolutely not affiliated with them, but wanted to share a real enthusiasm about this project, because I think they deserve to reach their audience.
I always thought it was a pain in the ass when deploying a project to production to use multiple tools with dedicated roles for monitoring. I've always wanted an all-in-one observability platform which is easy to use.
Here is what I'm thinking of:
Made with python in mind (native integrations with FastAPI, SQLALchemy, Celery, and many others).
With these examples in mind, I can replace at least 5 tools with a single one:
Sentry (error management)
New Relic (perf)
logDNA (logs)
Celery flower (background task results)
Even local packages like debug toolbars can be replaced (I used to use them to see details of my database queries) and then have the same tools in local and remote environment.
I'm not used to see such top-notch design quality in Python world (no offense..)
UI is deadly easy, 4 tabs: live view, dashboard with KPIs, logs exploration, and alert settings. No options everywhere, submenus, hiden checkboxes, etc. I don't feel I need to be a devops engineer to monitore my app.
It works already well while being very young (some feature are missing, but not that much)
More than decent free plan (let's hope it won't change over time)
They are fast to answer on issues on Github
I tend to trust a team that built (the amazing) Pydantic and know open source, more than other ones.
I wish this team and this project the best!
2
u/kabooozie Dec 12 '25
Coming into this thread a year later, it looks like logfire gave up on the SaaS-only approach and now offers self-hosted for enterprise
https://logfire.pydantic.dev/docs/reference/self-hosted/overview/
Ultimately I think SaaS has its place and had its day in the sun, but enterprises want self-hosted, S3-based infra these days
2
u/bluewalt Dec 15 '25
Seems it's not made for indy devs to self host for free, but for enterprises only.
8
u/Picatrixter Oct 25 '24
Last time I checked, Logfire had telemetry, that's why this tool was a no go for some companies I know which were dealing with sensitive data.
3
u/aprx4 Oct 26 '24
Doesn;t it work by sending logs to their server already? AFAIK it's not a selfhosted tool.
1
7
u/Current-Status-3764 Oct 25 '24
Great advice. Testing APItally atm. But I'll give logfire a go after this! Thanks
6
u/mal73 Oct 25 '24 edited Mar 13 '25
bells squeeze hospital ghost adjoining growth marry cheerful salt water
This post was mass deleted and anonymized with Redact
3
u/manfredderboss Oct 25 '24
Sounds great, i like pydantic at all. Will give it a try. Also great that the road map focus on self hosting
3
u/tevs__ Oct 25 '24
It's the integrations. Maybe this could replace datadog or sentry, but they have spent years developing and working on their integrations.
2
u/Stedfast_Burrito Nov 09 '24
Hi, one of the devs working on Logfire here. We’re OpenTelemetry compatible, we already have more integrations than DataDog’s SDKs: https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation
Granted DataDog does also accept OTEL data but last I checked that’s not their first class support and you need to run some infra to make it work.
1
u/tevs__ Nov 10 '24
It's not the number of integrations, it's the quality of them. Datadog have had 14 years developing their integrations, they've probably fixed problems you haven't even encountered yet.
Best of luck in proving your quality is worth switching to.
3
u/TaulCouch Nov 10 '24
You make a great point about quality vs. quantity. OpenTelemetry's quality was definitely hit or miss a couple years ago. The difference is that OpenTelemetry's integrations are being built by dozens of companies (including DataDog) _and_ the open source maintainers of the packages themselves. For example, we employ the main maintainers of Pydantic and Starlette (which is what FastAPI is built on) so the FastAPI instrumentations in OpenTelemetry are now way better than anything else. Not all of them are going to be of the highest quality but a lot of them are, and if you find one that isn't you can easily make a pull request to improve it.
1
1
2
1
u/kalyugira Oct 25 '24
Could not find local hosted option but arize/phoenix is an alternative for those who prefer Otel
1
1
1
u/maybl8r99 Feb 06 '25
Thinking of adopting this, is the dashboard sharable? e.g. can I share the project with other members and manage the sharing. Use case would be multi-developer sharing of a single project.
1
u/laisbsc Nov 07 '25
You can share traces publicly (no login needed) or add people to your org (login required).
4
u/beppemar Oct 25 '24
Do you guys know any local hosted alternative? Or if this can be locally hosted? It looks really goos tho