@nestjs-redisx/tracing
v1.0.2
Published
OpenTelemetry tracing plugin for NestJS RedisX - distributed tracing for Redis operations with Jaeger/Zipkin support
Maintainers
Readme
@nestjs-redisx/tracing
OpenTelemetry tracing plugin for NestJS RedisX. Automatic distributed tracing for all Redis operations with Jaeger, Zipkin, and OTLP exporter support. OpenTelemetry SDKs are bundled.
Installation
npm install @nestjs-redisx/core @nestjs-redisx/tracing ioredisQuick Example
import { RedisModule } from '@nestjs-redisx/core';
import { TracingPlugin } from '@nestjs-redisx/tracing';
@Module({
imports: [
RedisModule.forRoot({
clients: { host: 'localhost', port: 6379 },
plugins: [
new TracingPlugin({
serviceName: 'my-app',
exporter: { type: 'otlp', endpoint: 'http://localhost:4318/v1/traces' },
}),
],
}),
],
})
export class AppModule {}
// All Redis commands are now traced automaticallyDocumentation
Full documentation: nestjs-redisx.dev/en/reference/tracing/
License
MIT
