Package Exports
- @dollarsign/nestjs-jaeger-tracing
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dollarsign/nestjs-jaeger-tracing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
NestJS Jaeger Tracing
Jaeger distributed tracing for Nest framework
Features
- Supported Environments
- RESTful
- GraphQL
- Microservices
Installation
- Yarn
yarn add @dollarsign/nestjs-jaeger-tracing- NPM
npm install @dollarsign/nestjs-jaeger-tracing --saveGetting Started
Register TracingModule module in app.module.ts
import { TracingModule } from '@dollarsign/nestjs-jaeger-tracing';
import { Module } from '@nestjs/common';
import { ClientsModule, Transport } from '@nestjs/microservices';
@Module({
imports: [
TracingModule.forRoot({
exporterConfig: {
serviceName: 'core-service',
},
isSimpleSpanProcessor: true,
}),
ClientsModule.register([
{
name: 'MATH_SERVICE',
transport: Transport.TCP,
options: {
port: 3001,
...TracingModule.getParserOptions(),
},
},
]),
],
})
export class AppModule {}