@soapjs/soap-node-otel
v0.1.3
Published
Request tracing middleware for SoapJS Express apps (noop tracer today, OTel-ready)
Readme
@soapjs/soap-node-otel
Request tracing middleware for SoapJS Express apps. Ships with a noop tracer (req.traceId, req.span) and a Tracer port you can replace with OpenTelemetry later.
Install
npm install @soapjs/soap-node-otel @soapjs/soap-express @soapjs/soapUsage
import { bootstrap } from '@soapjs/soap-express';
await bootstrap({
controllers: [MyController],
tracing: true, // installs NoopTracer + TracingMiddleware
});Or register explicitly:
import { TracingMiddleware, NoopTracer } from '@soapjs/soap-node-otel';
app.getApp().use(TracingMiddleware.create({ tracer: new NoopTracer() }));Peer dependencies
@soapjs/soap>= 0.12.0express>= 4
