🌐 EN 📦 GitHub
Home Wiki News Contact Privacy Legal Notice Cookies
Lightweight PHP service for OpenRouter OTLP traces in shared hosting environments

OTLP Traces Without Composer for Shared Hosting

Developer EvanDataForge has released otlp-webhook-logger, a pragmatic solution for developers in shared hosting environments. The PHP-based tool receives OpenRouter OTLP traces via HTTP webhooks and stores them directly in MySQL databases, without requiring Composer or other dependency managers.

Designed for Restricted Hosting Environments

Traditional OTLP collectors like Jaeger or Zipkin often rely on complex architectures with separate processors and database backends that aren't feasible in shared hosting environments. otlp-webhook-logger circumvents these obstacles through its minimalist architecture: a single PHP script receives the traces, parses the OTLP payload, and writes the data directly to a MySQL table.

Technical Implementation

The implementation relies on native PHP functions and requires only a MySQL database. The tool processes incoming HTTP POST requests with OTLP trace data, validates the JSON structure, and stores the relevant information in predefined tables. By avoiding external libraries, the file size remains minimal and performance remains acceptable even on budget hosting packages.

OpenRouter Integration

The tight integration with OpenRouter makes the tool particularly attractive for developers using OpenRouter for AI applications. OpenRouter offers OTLP tracing as a way to monitor performance and analyze errors, and otlp-webhook-logger now enables users without root access or Composer access to benefit from these features.

Availability and License

The project is available on GitHub at github.com/EvanDataForge/otlp-webhook-logger under an open-source license. The documentation includes setup instructions, MySQL table schemas, and examples for configuring the OpenRouter webhook integration.

Conclusion

otlp-webhook-logger fills a gap in the OTLP tools ecosystem by providing a simple-to-deploy solution for resource-constrained hosting environments. For developers working in shared hosting environments who still want to benefit from OTLP tracing advantages, this tool represents a valuable addition.