0.0.2 • Published 9 years ago

cls-porqpine v0.0.2

Weekly downloads
9
License
-
Repository
github
Last release
9 years ago

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'));