Simbotix Otel
OpenTelemetry instrumentation for Frappe/ERPNext - sends traces, metrics, and logs to ClickStack/HyperDX
- Author: Simbotix
- Repository: https://github.com/Simbotix/simbotix_otel
- GitHub stars: 0
- Forks: 0
- Category: Developer Tools
- Maintenance: Minimally Maintained
Install Simbotix Otel
bench get-app https://github.com/Simbotix/simbotix_otel
Add the Frappe Gems badge to your README
Maintain Simbotix Otel? Paste this into your README:
[](https://frappegems.com/gems/apps/Simbotix/simbotix_otel)
About Simbotix Otel
Simbotix OTel
OpenTelemetry instrumentation for Frappe/ERPNext that sends traces, metrics, and logs to ClickStack/HyperDX.
Features
- Traces: HTTP requests, database queries, Redis operations
- Metrics: Request counts, latencies, error rates
- Logs: Python logging integrated with trace context
Installation
# On your Frappe bench
cd /home/frappe/frappe-bench
# Get the app
bench get-app https://github.com/Simbotix/simbotix_otel.git
# Install on a site
bench --site your-site.com install-app simbotix_otel
# Install OpenTelemetry dependencies
./env/bin/pip install opentelemetry-api opentelemetry-sdk opentelemetry-exporter-otlp \
opentelemetry-instrumentation opentelemetry-instrumentation-wsgi \
opentelemetry-instrumentation-requests opentelemetry-instrumentation-redis \
opentelemetry-instrumentation-pymysql opentelemetry-instrumentation-logging
Configuration
Option 1: Environment Variables (Recommended)
Add to your supervisor config or systemd service:
environment=OTEL_EXPORTER_OTLP_ENDPOINT="https://otel.appz.studio",OTEL_EXPORTER_OTLP_HEADERS="authorization=YOUR_API_KEY",OTEL_SERVICE_NAME="frappe-yoursite",OTEL_DEPLOYMENT_ENVIRONMENT="production"
Option 2: Modify Gunicorn Command
Change the gunicorn command in supervisor to use the wrapped application:
command=/home/frappe/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 17 simbotix_otel.app:application --preload
Option 3: Use opentelemetry-instrument
command=/home/frappe/frappe-bench/env/bin/opentelemetry-instrument /home/frappe/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 17 frappe.app:application --preload
Environment Variables
| Variable | Description | Default |
|---|---|---|
OTEL_EXPORTER_OTLP_ENDPOINT |
OTLP endpoint URL | https://otel.appz.studio |
OTEL_EXPORTER_OTLP_HEADERS |
Headers (comma-separated key=value) | - |
OTEL_SERVICE_NAME |
Service name for traces | frappe |
OTEL_SERVICE_VERSION |
Service version | 1.0.0 |
OTEL_DEPLOYMENT_ENVIRONMENT |
Environment (production/staging) | production |
Viewing Data
- Open ClickStack/HyperDX at https://clickstack.appz.studio
- Navigate to Traces to see request traces
- Navigate to Logs to see application logs
- Create dashboards for metrics visualization
License
MIT
Related Developer Tools apps for Frappe & ERPNext
- Frappe — Low code web framework for real world applications, in Python and Javascript
- Frappe Docker — Docker environment for developing, deploying, and running Frappe applications (ERPNext and custom apps) in production and development
- Builder — Craft beautiful websites effortlessly with an intuitive visual builder and publish them instantly
- Bench — CLI to manage Multi-tenant deployments for Frappe apps
- Frappe Ui — A set of components and utilities for rapid UI development
- Press — Full service cloud hosting for the Frappe stack - powers Frappe Cloud
- Gameplan — Open Source Discussions Platform for Remote Teams
- Doppio — A Frappe app (CLI) to magically setup single page applications and Vue/React powered desk pages on your custom Frappe apps.