Skip to content

[Feature Request] Support for OpenTelemetry tracing out of the box #1808

@kayossouza

Description

@kayossouza

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions