tracer
The OpenTelemetry object code uses to start and end spans.
In more detail
You get one with trace.getTracer('my-app') and wrap work in tracer.startActiveSpan('name', fn). Each span it creates joins the current trace automatically.
Related terms
- span — One timed operation within a trace, such as handling a request or running a query, with its start, duration and attributes.
- OpenTelemetry — A vendor-neutral, open-source standard and set of tools for producing traces, metrics and logs and sending them to any backend.
Taught in
- Instrumentation: OpenTelemetry & Performance Spans — Next.js 15 & Modern App Router Architecture