Closed OsoianMarcel closed 7 months ago
@OsoianMarcel Thanks for your support, I found the issue, bugfix is on the way. Since I use Nestjs-cls for tracing in my services, there are a few things I missed.
@OsoianMarcel https://www.npmjs.com/package/murlock/v/2.0.1 Fixed with this version, fyi.
@felanios Can we remove the dependency "ClsModule"? I'm receiving the same problem again on another project. It seems like the "ClsModule" is only used for keeping the client ID. Can we keep the ID inside the service itself on a private property or another place inside the "murlock" module? This way, we'll remove an unnecessary dependency, and forget about this bug forever. Thank you.
Hi @OsoianMarcel, I'm totally agree with that, I received feedback from different users regarding the same problem. I will solve this problem within this week.
I created a PR https://github.com/felanios/murlock/pull/31, hope it helps to resolve the problem. Thx.
@OsoianMarcel I merged the pr, thank you for your contribution.Because of the semantic-release, package bumped to v3.0.1, fyi. https://www.npmjs.com/package/murlock/v/3.0.1,
@felanios thanks, it works fine.
murlock version: 2.0.0 package manager: yarn v1.22.19 environment: docker image node:20-alpine node version: v20.9.0 NestJS core & common version: ^10.0.0
Usage inside a service (not controller):
Error during calling the service method (with MurLock decorator):