Skip to main content

No project description provided

Project description

Instrumenting your Python service to send logs to Iudex just takes a few steps.

FastAPI

  1. Pip install dependencies
pip install iudex
  1. Import instrument where you defined FastAPI (usually main.py) from iudex
# 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
)
  1. Make sure the app has access to the environment variable IUDEX_API_KEY
  2. You should be all set! Go to https://app.iudex.ai/ and enter your API key
  3. Go to https://app.iudex.ai/logs and press Search to view your logs

Lambda / Serverless

  1. Pip install dependencies
pip install iudex
  1. Import instrument from iudex and invoke it in your entrypoint (usually main.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
)
  1. Make sure the app has access to the environment variable IUDEX_API_KEY
  2. You should be all set! Go to https://app.iudex.ai/ and enter your API key
  3. Go to https://app.iudex.ai/logs and press Search to view your logs

Project details


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)

Uploaded Source

Built Distribution

iudex-0.5.5-py3-none-any.whl (11.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page