No project description provided
Project description
Instrumenting your Python service to send logs to Iudex just takes a few steps.
FastAPI
- Pip install dependencies
pip install iudex
- Import
instrument
where you defined FastAPI (usuallymain.py
) fromiudex
# Add this
from iudex.instrumentation.fastapi import instrument
# Find this in your code base
app = FastAPI()
# Add this
instrument(
app=app,
service_name=__name__, # or any string describing your service
env="development", # or any string for your env
)
- Make sure the app has access to the environment variable
IUDEX_API_KEY
- You should be all set! Go to https://app.iudex.ai/ and enter your API key
- Go to https://app.iudex.ai/logs and press
Search
to view your logs
Lambda / Serverless
- Pip install dependencies
pip install iudex
- Import
instrument
fromiudex
and invoke it in your entrypoint (usuallymain.py
)
# Add this in your lambda function file (likely lambda_function.py)
from iudex.instrumentation.lambda import instrument
instrument(
service_name=__name__, # or any string describing your service
env="development", # or any string for your env
)
- Make sure the app has access to the environment variable
IUDEX_API_KEY
- You should be all set! Go to https://app.iudex.ai/ and enter your API key
- Go to https://app.iudex.ai/logs and press
Search
to view your logs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
iudex-0.5.5.tar.gz
(8.9 kB
view hashes)
Built Distribution
iudex-0.5.5-py3-none-any.whl
(11.6 kB
view hashes)