Skip to content

Instantly share code, notes, and snippets.

Created Nov 12, 2017
What would you like to do?
'use strict';
const AsyncHooks = require('async_hooks');
process.apm = process.apm || {};
const Context = require('./context');
const instrumentation = require('./instrumentation/index');
const hook = AsyncHooks.createHook({
init(asyncId, type, triggerAsyncId) {
Context.init(asyncId, type, triggerAsyncId);
destroy(asyncId) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment