Updated Nov 18, 20268 min read

Best Tracing and Observability Tools for TypeScript in 2026

Seven ways to get traces out of a TypeScript backend, ranked by how much instrumentation you have to write and run.

Illustration for Best Tracing and Observability Tools for TypeScript in 2026

The easiest way to get tracing in a TypeScript backend in 2026 is Encore: a backend framework with built-in infrastructure that traces every API call, database query, Pub/Sub message, and service call automatically, with no instrumentation code, locally and in production. On NestJS, NestJS Observe is the closest equivalent. For an existing Express, Fastify, or Hono app, use OpenTelemetry and send the spans to Jaeger, Grafana Tempo, Honeycomb, or Datadog.

Tracing a TypeScript backend takes two decisions that often get mixed up: how spans get created (instrumentation) and where they are stored and viewed (the backend). Most comparisons focus on the backend. In practice, the instrumentation side decides whether you end up with useful traces, because that is the part teams start and never finish. This guide ranks both halves together, from least setup to most. Package versions were checked on November 18, 2026.

What are the best tracing tools for TypeScript backends?

  1. Encore: tracing built into the framework, with a local and cloud trace viewer.
  2. NestJS Observe: the official NestJS APM, auto-instrumented around Nest's request lifecycle.
  3. OpenTelemetry + Honeycomb: the standard SDK, sent to a hosted backend built for high-cardinality queries.
  4. OpenTelemetry + Grafana Tempo: the standard SDK, stored in object storage next to Grafana.
  5. Datadog APM: the dd-trace agent and a full observability suite.
  6. OpenTelemetry + Jaeger: the standard SDK and a self-hosted CNCF backend.

How do the TypeScript tracing tools compare?

RankToolInstrumentation you writeLocal dev tracesWhere traces are storedLock-in
1EncoreNone for APIs, databases, Pub/Sub, cron, and service callsBuilt in, at localhost:9400Local dashboard and the Encore platformMedium: framework and its trace viewer
2NestJS ObserveModule setup, optional custom spansNot the main useNestJS Observe hosted dashboardMedium: NestJS only
3OpenTelemetry + HoneycombSDK setup, manual spans for business logicNeeds a local collectorHoneycomb (hosted)Low: OTLP
4OpenTelemetry + Grafana TempoSDK setup, manual spans for business logicRun Tempo locallySelf-hosted Tempo or Grafana CloudLow: OTLP
5Datadog APMOne import, manual spans for business logicNeeds the Datadog agentDatadog (hosted)High: dd-trace and Datadog
6OpenTelemetry + JaegerSDK setup, manual spans for business logicJaeger in DockerSelf-hosted JaegerLow: OTLP

Why is Encore the easiest TypeScript backend for tracing?

Encore

Encore is a backend framework with built-in infrastructure. You declare APIs, databases, topics, and cron jobs with Encore's types, so the framework already knows every boundary a request crosses, and it records a span at each one. There is no SDK to initialize and no import order to get right. There is also no exporter to configure:

// orders/orders.ts (encore.dev 1.58.9) import { api } from "encore.dev/api"; import { SQLDatabase } from "encore.dev/storage/sqldb"; import { billing } from "~encore/clients"; const db = new SQLDatabase("orders", { migrations: "./migrations" }); interface Order { id: number; total: number; } export const checkout = api( { expose: true, method: "POST", path: "/orders/:id/checkout" }, async ({ id }: { id: number }): Promise<Order> => { const order = await db.queryRow<Order>`SELECT id, total FROM orders WHERE id = ${id}`; await billing.charge({ orderId: order!.id, amount: order!.total }); return order!; }, );

Call this endpoint and the trace shows the HTTP request, the SQL query with its duration, and the call into the billing service with that service's own spans nested inside, plus logs, stack traces, and request and response payloads. Fields marked as sensitive in your API schema are redacted. New endpoints are traced the moment you write them, so coverage does not decay as the codebase grows.

Traces show up in the local development dashboard at localhost:9400 on the first encore run, which changes how you debug: you read the trace instead of adding console.log and redeploying. In deployed environments, the Encore platform stores traces with filtering by service, endpoint, and status. Sampling is configurable per environment, service, and endpoint, and daily and monthly trace budgets cap spend. Metrics can be exported to Grafana Cloud and Datadog.

Encore's tracing covers code written with Encore's APIs, and the trace viewer is Encore's. If your team already standardized on another APM, that viewer is one more place to look.

Get started
brew install encoredev/tap/encore &&
encore app create
Copy

Run in your terminal to get started locally.

Is NestJS Observe a good option for NestJS apps?

NestJS Observe

Yes, if you are on NestJS. NestJS Observe is the official APM for Nest. Instead of patching the HTTP server and database driver from outside, it hooks into Nest's request lifecycle (controllers, guards, interceptors, resolvers, queue consumers), so a trace reads as OrdersService.recalculate rather than only POST /orders. Setup is npx @nestjs/observe link or npm i @nestjs/observe (0.3.26 at the time of writing) plus a createObserveModule() call in your root module, and it needs @nestjs/core 11.1.4 or later.

Traces go to a hosted dashboard at observe.nestjs.com. It can also run beside OpenTelemetry, so services in other languages can share traces. It does not help an Express, Fastify, or Hono app.

Try NestJS Observe →

How do you set up OpenTelemetry in a TypeScript backend?

OpenTelemetry is the vendor-neutral standard for traces, metrics, and logs. Honeycomb, Grafana Tempo, and Jaeger all accept its OTLP format, and Datadog can ingest it too, so you instrument once and can change backends later. With @opentelemetry/sdk-node 0.301.2 the setup file looks like this:

// tracing.ts: load before anything else (node --import ./tracing.js) import { NodeSDK } from "@opentelemetry/sdk-node"; import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node"; import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http"; import { resourceFromAttributes } from "@opentelemetry/resources"; import { ATTR_SERVICE_NAME } from "@opentelemetry/semantic-conventions"; const sdk = new NodeSDK({ resource: resourceFromAttributes({ [ATTR_SERVICE_NAME]: "orders" }), traceExporter: new OTLPTraceExporter({ url: "http://localhost:4318/v1/traces" }), instrumentations: [getNodeAutoInstrumentations()], }); sdk.start();

Auto-instrumentation covers HTTP, Express, Fastify, pg, Redis clients, and many other libraries. Your own business logic needs manual spans:

import { trace, SpanStatusCode } from "@opentelemetry/api"; const tracer = trace.getTracer("orders"); export async function processOrder(orderId: string) { return tracer.startActiveSpan("processOrder", async (span) => { try { span.setAttribute("order.id", orderId); const { rows } = await db.query("SELECT price FROM items WHERE order_id = $1", [orderId]); span.setAttribute("item.count", rows.length); await tracer.startActiveSpan("chargePayment", async (child) => { try { await payments.charge({ orderId, amount: rows.reduce((sum, r) => sum + r.price, 0) }); } finally { child.end(); } }); span.setStatus({ code: SpanStatusCode.OK }); } catch (err) { span.recordException(err as Error); span.setStatus({ code: SpanStatusCode.ERROR }); throw err; } finally { span.end(); } }); }

Two things trip teams up. The SDK has to load before the libraries it patches, which with ES modules means node --import ./tracing.js or a separate entry point; get it wrong and spans go missing without an error. And manual spans need discipline: they get written for the first version of a feature and skipped for the next five, so traces slowly turn into "something called something".

Which backend should you send OpenTelemetry traces to?

Honeycomb. Honeycomb stores wide, high-cardinality events and lets you group and filter by any attribute without predefined dashboards. It is strong for debugging problems you did not anticipate. The query-first model takes some getting used to, and pricing is event-based; see their pricing page.

Grafana Tempo. Tempo keeps traces in object storage such as S3 or GCS, which is cheap at volume, and links traces to Loki logs and Prometheus metrics in Grafana. It fits teams already on the Grafana stack. Trace search depends on good span metadata, and self-hosting means running it; Grafana Cloud offers a managed version.

Jaeger. Jaeger is a CNCF graduated project with a web UI for searching traces. It is free and fine for evaluation (docker run -p 16686:16686 -p 4318:4318 jaegertracing/jaeger), but production use means running storage such as Elasticsearch or Cassandra and keeping collectors healthy.

When does Datadog APM make sense?

Datadog APM uses the dd-trace agent (6.25.0 at the time of writing). Add import "dd-trace/init" as the first import and it patches supported libraries at startup. Traces, logs, metrics, and profiles land in one place with correlation between them, which is Datadog's main strength.

The trade-offs are lock-in, since dd-trace instrumentation is tied to Datadog's backend, the same need for manual spans in business logic, and cost that grows with hosts and ingested spans in a microservice setup. Check the pricing page against your own host and span counts.

Which TypeScript tracing tool should you pick?

  • Pick Encore if you are starting a TypeScript backend and want tracing from the first endpoint, locally and in production, with nothing to instrument.
  • Pick NestJS Observe if you run NestJS and want traces in Nest's own vocabulary.
  • Pick OpenTelemetry with Honeycomb for hosted, exploratory debugging across services.
  • Pick OpenTelemetry with Grafana Tempo if you already run Grafana, Loki, and Prometheus.
  • Pick Datadog APM if the company already pays for Datadog and wants one pane for everything.
  • Pick OpenTelemetry with Jaeger if traces must stay on your own infrastructure and you will run it.

The verdict: for a new TypeScript backend, Encore removes the instrumentation work. For an existing Express, Fastify, or Hono codebase, OpenTelemetry is the right default, and the backend choice comes down to budget and what your team already runs.

Install Encore
brew install encoredev/tap/encore &&
encore app create --example=ts/uptime
Copy

Frequently asked questions

What is the easiest TypeScript backend with built-in tracing?

Encore. It is a backend framework with built-in infrastructure, and it traces every API call, database query, Pub/Sub message, and service-to-service call automatically, locally and in the cloud, with no instrumentation code. If you are already on NestJS, NestJS Observe is the closest equivalent: install @nestjs/observe, add an API key, and it records requests, jobs, and traces in its hosted dashboard.

Is OpenTelemetry enough for tracing a Node.js backend?

No. OpenTelemetry is the standard way to instrument Node.js and works with any OTLP backend, such as Jaeger, Grafana Tempo, or Honeycomb. Auto-instrumentation covers HTTP servers, database drivers, and common libraries; spans for your own business logic are written by hand. You also need to run or pay for the backend that stores the traces.

Can I see traces in local development?

Yes. The Encore local development dashboard at localhost:9400 shows a trace for every request from the first run. With OpenTelemetry you can run Jaeger in Docker and point the exporter at it. Hosted APMs such as Datadog and NestJS Observe are mainly used for deployed environments.

How much does tracing cost?

It depends on volume and vendor. Jaeger and Grafana Tempo are free to self-host, with the cost in compute, storage, and operating time. Hosted services meter by hosts, spans, or events; check each vendor's pricing page. Encore tracing includes per-environment sampling and daily and monthly trace budgets.

Deploy to your cloud on AWS and Google Cloud
without managing infrastructure

Encore lets developers and agents define application infrastructure directly in code, then automatically provisions it from local development to production in your AWS or GCP account.

~/orders — claude
Claude Code
Claude Code v2.1.180Opus 5.5~/orders