
Boost Your NestJS Observability with RedisX
Observability is one of those things you can't ignore if you're managing modern applications. It's the secret sauce that gives developers a peek into how their systems are really performing. If you're working with NestJS and Redis, the RedisX toolkit is your new best friend for upping your observability game with Prometheus metrics and OpenTelemetry tracing. Getting RedisX Rolling in Your NestJS App Let's get down to business and set up RedisX for some serious observability in your NestJS app. First things first, you'll need to install a few packages. Fire up your terminal and run: npm install @nestjs-redisx/core @nestjs-redisx/metrics @nestjs-redisx/tracing Once that's sorted, it's time to tweak your AppModule . You'll want to add MetricsPlugin and TracingPlugin to get Prometheus metrics and OpenTelemetry tracing without breaking a sweat. import { Module } from ' @nestjs/common ' ; import { ConfigModule , ConfigService } from ' @nestjs/config ' ; import { RedisModule } from ' @nestjs-
Continue reading on Dev.to
Opens in a new tab


