How to use the diagnostic-channel.channel.registerMonkeyPatch function in diagnostic-channel

To help you get started, we’ve selected a few diagnostic-channel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / node-diagnostic-channel / src / diagnostic-channel-publishers / src / console.pub.ts View on Github external
export function enable() {
    channel.registerMonkeyPatch("console", console);

    // Force patching of console
    /* tslint:disable-next-line:no-var-requires */
    require("console");
}
github microsoft / node-diagnostic-channel / src / diagnostic-channel-publishers / src / mongodb.pub.ts View on Github external
export function enable() {
    channel.registerMonkeyPatch("mongodb", mongo2);
    channel.registerMonkeyPatch("mongodb", mongo3);
    channel.registerMonkeyPatch("mongodb", mongo330);
}
github microsoft / node-diagnostic-channel / src / diagnostic-channel-publishers / src / pg.pub.ts View on Github external
export function enable() {
    channel.registerMonkeyPatch("pg", postgres6);
    channel.registerMonkeyPatch("pg", postgres7);
}
github microsoft / node-diagnostic-channel / src / diagnostic-channel-publishers / src / redis.pub.ts View on Github external
export function enable() {
    channel.registerMonkeyPatch("redis", redis);
}
github microsoft / node-diagnostic-channel / src / diagnostic-channel-publishers / src / pg.pub.ts View on Github external
export function enable() {
    channel.registerMonkeyPatch("pg", postgres6);
    channel.registerMonkeyPatch("pg", postgres7);
}
github microsoft / node-diagnostic-channel / src / diagnostic-channel-publishers / src / mysql.pub.ts View on Github external
export function enable() {
    channel.registerMonkeyPatch("mysql", mysql);
}
github microsoft / node-diagnostic-channel / src / diagnostic-channel-publishers / src / mongodb-core.pub.ts View on Github external
export function enable() {
    channel.registerMonkeyPatch("mongodb-core", mongoCore);
}
github microsoft / node-diagnostic-channel / src / diagnostic-channel-publishers / src / winston.pub.ts View on Github external
export function enable() {
    channel.registerMonkeyPatch("winston", winston2);
    channel.registerMonkeyPatch("winston", winston3);
}
github microsoft / node-diagnostic-channel / src / diagnostic-channel-publishers / src / mongodb.pub.ts View on Github external
export function enable() {
    channel.registerMonkeyPatch("mongodb", mongo2);
    channel.registerMonkeyPatch("mongodb", mongo3);
    channel.registerMonkeyPatch("mongodb", mongo330);
}
github microsoft / node-diagnostic-channel / src / diagnostic-channel-publishers / src / pg-pool.pub.ts View on Github external
export function enable() {
    channel.registerMonkeyPatch("pg-pool", postgresPool1);
}

diagnostic-channel

Provides a context-saving pub/sub channel to connect diagnostic event publishers and subscribers

MIT
Latest version published 1 year ago

Package Health Score

74 / 100
Full package analysis

Similar packages