Overview of Fresh OpenTelemetry instrumentation
Fresh automatically instruments key operations using the @opentelemetry/api package. Spans are created under the fresh tracer (named with the current Fresh version). If no exporter is configured, spans are silently discarded with no performance overhead.
Fresh creates spans for the following operations:
- Middleware execution (each middleware in the chain)
- Route handler execution
- Server-side rendering (including async components)
- Static file serving (lookups, caching, and responses)
- Lazy route loading (dynamic imports of route modules on first access)