Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

198
Vistas
Loggin metadata on NodeJS following clean architecture

I'm working on an API built on Node JS following the clean architecture guidelines, Also I'm using aws API GW which provides a request id for every request made to the API and I would like to add this request id to the logging metadata.

So, I currently have an abstraction of the logger and I'm injecting a concrete implementation of this logger into the application layers using some kind of DI. Also, I'm injecting services and db adapter using the same DI.

I would like to know if anyone can help with a clean way to pass the request id metadata into the logger without having to instance services and db adapter every time a request came to the API in order to inject the logger with the metadata in the constructor of this components.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda