8.2.0 • Published 3 years ago

@kilianstallz/nestjs-jaeger-tracing v8.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Features

  • Supported Environments
    • RESTful
    • GraphQL
    • Microservices

Installation

  • Yarn
yarn add @dollarsign/nestjs-jaeger-tracing
  • NPM
npm install @dollarsign/nestjs-jaeger-tracing --save

Getting 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 {}