Description
It would be great to have built-in OpenTelemetry support in Elysia, similar to how Hono has @hono/otel.
Use Case
When running Elysia in production, observability is critical. Currently, instrumenting Elysia requires manual middleware that wraps every handler. A first-class plugin or built-in support would make it much easier to get distributed tracing, metrics, and logging working.
Proposed Solution
An official @elysiajs/otel plugin that:
- Auto-instruments all route handlers with spans
- Propagates trace context from incoming headers
- Exports via OTLP
Happy to help contribute if there's interest.