Using Langtrace to monitor your Arch apps is quick and easy. Follow these steps:

Setup

  1. Install and run Arch by following the steps outlined in their docs.

  2. Install the Langtrace SDK.

Note: You’ll need an API key from Langtrace. Sign up for Langtrace if you haven’t done so already.

Python
# Install the SDK
pip install -U langtrace-python-sdk openai
  1. Setup environment variables:
Shell
export LANGTRACE_API_KEY=YOUR_LANGTRACE_API_KEY

Usage

Generate a simple output with your deployment’s model:

You can now view your traces on the Langtrace dashboard:

Additional Resources