
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@byndyusoft/nest-opentracing
Advanced tools
Implementation of Distributed Tracing for Nest.js modules.
So far only the express framework is supported.
npm i @byndyusoft/nest-opentracing @nestjs/axios @nestjs/common axios express
Import tracing module in your root module just once.
import { JaegerTracingModule } from "@byndyusoft/nest-opentracing";
@Module({
imports: [JaegerTracingModule.forRoot({ applyRoutes: ["v1/*"], ignoreRoutes: [] })],
controllers: [AppController],
})
export class AppModule {}
import { OpenTracingModule } from "@byndyusoft/nest-opentracing";
@Module({
imports: [
OpenTracingModule.forRootAsync({
useFactory: () => ({
tracer: initSomeTracer(),
applyRoutes: ["v1/*"],
ignoreRoutes: [],
}),
}),
],
controllers: [AppController],
})
export class AppModule {}
import { OpenTracingModule } from "@byndyusoft/nest-opentracing";
@Module({
imports: [
OpenTracingModule.forRootAsync({
useFactory: () => ({
applyRoutes: ["v1/*"],
ignoreRoutes: [],
logBodies: true,
}),
}),
],
controllers: [AppController],
})
export class AppModule {}
import { JaegerTracingModule, TracedHttpModule } from "@byndyusoft/nest-opentracing";
@Module({
imports: [
JaegerTracingModule.forRoot({ applyRoutes: [AppController], ignoreRoutes: [], logBodies: true }),
TracedHttpModule.registerAsync({
useFactory: () => ({
logBodies: true,
}),
}),
],
controllers: [AppController],
})
export class AppModule {}
Configures by Jaeger environment variables and next variables:
npm_package_version
NAMESPACE
NODE_ENV
TracedHttpModule can be configured via registerAsync pattern.
import { JaegerTracingModule, TracedHttpModule } from "@byndyusoft/nest-opentracing";
@Module({
imports: [
TracedHttpModule.registerAsync({
useFactory: () => ({
logBodies: true,
}),
}),
],
controllers: [AppController],
})
export class AppModule {}
import { TracingService } from "@byndyusoft/nest-opentracing";
@Controller()
class AppController {
constructor(private readonly tracingService: TracingService) {}
@Get("foo")
async bar() {
/* some code here */
const asyncResult = await this.tracingService.traceAsyncFunction(
"description",
async () => await someAsyncAction("foo", "bar"),
);
/* some code here */
}
}
FAQs
Nest.js implementation of opentracing
We found that @byndyusoft/nest-opentracing demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.