Hono observability, live in minutes.
OpenTelemetry tracing for Hono, on Node or the edge runtime of your choice.
Standard OpenTelemetry, pointed at us.
No proprietary agent, no vendor SDK required on the server. If your service already exports OTLP, step two is the whole integration.
- STEP 1Create a project
Sign up, create a project, and copy its ingest token. Nothing to install on our side.
- STEP 2Point your exporter at us
Set OTEL_EXPORTER_OTLP_ENDPOINT to https://ingest.tracepath.dev/api/otel and OTEL_EXPORTER_OTLP_HEADERS to "Authorization=Bearer <token>". If you already emit OpenTelemetry, that is the whole integration.
- STEP 3Or wire the SDK explicitly
Prefer code over environment variables? Configure the OTLP exporters yourself, exactly as in the sample below. Standard OpenTelemetry packages only — nothing TracePath-specific.
A working instrumentation.js.
Standard OpenTelemetry packages only — this is the actual shape of a Hono integration against TracePath.
import { NodeSDK } from "@opentelemetry/sdk-node";
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
import { OTLPMetricExporter } from "@opentelemetry/exporter-metrics-otlp-http";
import { PeriodicExportingMetricReader } from "@opentelemetry/sdk-metrics";
import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node";
const tracepathUrl = process.env.TRACEPATH_URL || "https://ingest.tracepath.dev";
const tracepathToken = process.env.TRACEPATH_TOKEN;
const sdk = new NodeSDK({
traceExporter: new OTLPTraceExporter({
url: `${tracepathUrl}/api/otel/v1/traces`,
headers: { Authorization: `Bearer ${tracepathToken}` },
}),
metricReader: new PeriodicExportingMetricReader({
exporter: new OTLPMetricExporter({
url: `${tracepathUrl}/api/otel/v1/metrics`,
headers: { Authorization: `Bearer ${tracepathToken}` },
}),
exportIntervalMillis: 10_000,
}),
// Disable instrumentation-http — @hono/otel handles HTTP spans at the
// middleware level. Keep other auto-instrumentations (db, redis, fetch).
instrumentations: [
getNodeAutoInstrumentations({
"@opentelemetry/instrumentation-http": { enabled: false },
}),
],
});
sdk.start();Source: examples/hono-otel/instrumentation.js in our examples.
Built for Hono.
Middleware-level HTTP spans via @hono/otel
Runs on Node and edge-compatible runtimes
Metrics over OTLP on the same endpoint
W3C trace-context propagation built in
Other frameworks
Instrument Hono today.
Free plan, no credit card. First event in under five minutes.