Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki committed Oct 1, 2024
1 parent 64e590f commit 841cd56
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions examples/python/flask-sqlalchemy/README.MD
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
# Logfire + Flask + SQLAlchemy Example

This example is a simple Python financial calculator app which is instrumented with Logfire. If you spin up the server locally and interact with the calculator app, you'll be able to see traces come in automatically. The instrumentation is done with just these lines of code at the start of `main.py`:

```python
import logfire

logfire.install_auto_tracing(modules=['app'], min_duration=0)

from app import app, db # needs to be imported after install_auto_tracing

logfire.configure()
logfire.instrument_sqlalchemy()
logfire.instrument_flask(app)
```
This example is a simple Python financial calculator app which is instrumented with Logfire. If you spin up the server locally and interact with the calculator app, you'll be able to see traces come in automatically. The Logfire instrumentation is done with just a few lines of code in `main.py`.

## Run the project

Expand Down

0 comments on commit 841cd56

Please sign in to comment.