Skip to main content

package with monocle genAI tracing

Project description

Monocle Apptrace

Monocle helps developers and platform engineers building or managing GenAI apps monitor these in prod by making it easy to instrument their code to capture traces that are compliant with open-source cloud-native observability ecosystem.

Monocle is a community-driven OSS framework for tracing GenAI app code governed as a Linux Foundation AI & Data project.

Use Monocle

  • Get the Monocle package
    pip install monocle_apptrace 
  • Instrument your app code
    • Import the Monocle package
         from monocle_apptrace.instrumentor import setup_monocle_telemetry
      
    • Setup instrumentation in your main() function
         setup_monocle_telemetry(workflow_name="your-app-name")
      
  • (Optionally) Modify config to alter where traces are sent

See Monocle user guide for more details.

Claude Code Instrumentation

# 1. Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh

# 2. Install package
uv tool install monocle_apptrace

# 3. Register hooks — prompts for Okahu API key (leave blank for local-only)
monocle-apptrace claude-setup

Start a new Claude Code session — traces flow automatically.

See Hook Setup Guide for complete instructions.

Codex CLI Instrumentation

# 1. Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh

# 2. Install package
uv tool install monocle_apptrace

# 3. Register hooks — prompts for Okahu API key (leave blank for local-only)
monocle-apptrace codex-setup

Start a new Codex session — traces flow automatically.

See Hook Setup Guide for complete instructions.

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

monocle_apptrace-0.8.3.tar.gz (201.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

monocle_apptrace-0.8.3-py3-none-any.whl (308.0 kB view details)

Uploaded Python 3

File details

Details for the file monocle_apptrace-0.8.3.tar.gz.

File metadata

  • Download URL: monocle_apptrace-0.8.3.tar.gz
  • Upload date:
  • Size: 201.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for monocle_apptrace-0.8.3.tar.gz
Algorithm Hash digest
SHA256 193ea2d74b50b153db09295327433df16ae357f39d32cde9341350cde94d2c91
MD5 ea402a52dd929d37f4f12fbac3298b8c
BLAKE2b-256 caacd97ebb48e210d8742cd67f8d7aad0e17215475a2f7687d03737c33cee257

See more details on using hashes here.

File details

Details for the file monocle_apptrace-0.8.3-py3-none-any.whl.

File metadata

File hashes

Hashes for monocle_apptrace-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 48ea73e1f38093fa143e5be414cb4ce0d1aed85fc6584f86107a97b28e5e75a1
MD5 c0381175f5cd0ca2597b64f8040fa705
BLAKE2b-256 2631ad8bbc702d63fa995bd8f10e9f5d5888334b003353532a7ee4b4ca13a83e

See more details on using hashes here.

Supported by

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