Comments (2)
It's _exc_info
. All 'special' keyword arguments have a leading underscore to distinguish them from attributes. Maybe we should emit a warning when someone passes an attribute that looks like it was meant to be a special keyword arg.
You can also just do this:
try:
...
except Exception:
logfire.exception("My error log")
logfire.exception("My error log")
is equivalent to logfire.error("My error log", _exc_info=True)
and _exc_info=True
gets the currently handled exception so you don't have to pass it.
from logfire.
It's
_exc_info
. All 'special' keyword arguments have a leading underscore to distinguish them from attributes. Maybe we should emit a warning when someone passes an attribute that looks like it was meant to be a special keyword arg.You can also just do this:
try: ... except Exception: logfire.exception("My error log")
logfire.exception("My error log")
is equivalent tologfire.error("My error log", _exc_info=True)
and_exc_info=True
gets the currently handled exception so you don't have to pass it.
Right, now it renders properly. Thanks!
from logfire.
Related Issues (20)
- LLM provider traces (e.g. OpenAI) don't handle images in the messages array HOT 3
- Do not require auth if using custom exporters HOT 7
- Supported way to check credentials? HOT 14
- FastAPI integration error HOT 4
- Add the `logfire.instrument_mysql()` HOT 2
- Be able to get the line where the function is called when using `@logfire.instrument()` instead of the function definition HOT 1
- Anthropic Instrumentation errors HOT 2
- Token usage on LLM integrations HOT 2
- Can Logfire be used with Prometheus, Jaeger and Grafana? HOT 4
- Different environments for the same project (dev, prod, staging, custom)
- Add `logfire.instrument_pytest()` HOT 4
- `logfire inspect` suggests irrelevant packages HOT 1
- `test_logfire_api` doesn't look at `logfire_api.__all__` HOT 3
- pip install logfire (without version) installed the very old version of logfire HOT 2
- Temporal.io integration HOT 1
- How to send data to otel collector? HOT 2
- logfire 0.50 requires pytest HOT 6
- 中文文档上线了 🎉 🎉 🎉 原汁原味的中文 HOT 4
- Live View - Filters Menu - Long Span names run the menu off screen
- How to use with FastAPI, SQLModel and Postgres, etc.? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logfire.