Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dollarsignteam/nestjs-jaeger-tracing

NestJS jaeger tracing
https://github.com/dollarsignteam/nestjs-jaeger-tracing

Last synced: 2 months ago
JSON representation

NestJS jaeger tracing

Awesome Lists containing this project

README

        


NestJS Jaeger Tracing




Jaeger distributed tracing for Nest framework

## Features

- Supported Environments
- RESTful
- GraphQL
- Microservices

### Installation

- Yarn

```bash
yarn add @dollarsign/nestjs-jaeger-tracing
```

- NPM

```bash
npm install @dollarsign/nestjs-jaeger-tracing --save
```

### Getting Started

Register `TracingModule` module in app.module.ts

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

---