File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
datadog-instrumentations/src Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const pathToRegExp = require('path-to-regexp')
55const shimmer = require ( '../../datadog-shimmer' )
66const { addHook, channel } = require ( './helpers/instrument' )
77
8+ // TODO: Move this function to a shared file between Express and Router
89function createWrapRouterMethod ( name ) {
910 const enterChannel = channel ( `apm:${ name } :middleware:enter` )
1011 const exitChannel = channel ( `apm:${ name } :middleware:exit` )
Original file line number Diff line number Diff line change @@ -18,10 +18,12 @@ class Subscription {
1818 }
1919
2020 enable ( ) {
21+ // TODO: Once Node.js v18.6.0 is no longer supported, we should use `dc.subscribe(event, handler)` instead
2122 this . _channel . subscribe ( this . _handler )
2223 }
2324
2425 disable ( ) {
26+ // TODO: Once Node.js v18.6.0 is no longer supported, we should use `dc.unsubscribe(event, handler)` instead
2527 this . _channel . unsubscribe ( this . _handler )
2628 }
2729}
You can’t perform that action at this time.
0 commit comments