@nexusts/tracing
v0.9.4
Published
OpenTelemetry distributed tracing
Readme
@nexusts/tracing
NexusTS — Bun-native fullstack framework
Description
OpenTelemetry distributed tracing.
Lazy-loads the OTel SDK. W3C + B3 propagation. Hono auto-instrumentation middleware. @Trace() method decorator. Exporter-agnostic.
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/tracingPeer dependencies
bun add @opentelemetry/api@opentelemetry/api^1.9.0 — OpenTelemetry API. Required to enable tracing.
Without them the module loads but its public methods throw a clear error pointing to this install command on first call.
Usage
import { /* public API */ } from "@nexusts/tracing";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
