cls-porqpine
v0.0.2
Published
Make porqpine play nice with the continuation-local-storage module.
Downloads
8
Maintainers
Readme
cls-porqpine
If you try to use continuation-local-storage with porqpine, you'll quickly discover that porqpine loses your CLS context. This happens because mongo loses the CLS context, and this module exists to solve that problem.
Usage
var cls = require('continuation-local-storage');
var porqpine = require('porqpine');
var porqpatch = require('cls-porqpine');
// patch mongodb to cure its amnesia
porqpatch(cls.createNamespace('transaction'));