• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3const config = internalBinding('config');
4
5const {
6  DTRACE_HTTP_CLIENT_REQUEST = () => {},
7  DTRACE_HTTP_CLIENT_RESPONSE = () => {},
8  DTRACE_HTTP_SERVER_REQUEST = () => {},
9  DTRACE_HTTP_SERVER_RESPONSE = () => {},
10  DTRACE_NET_SERVER_CONNECTION = () => {},
11  DTRACE_NET_STREAM_END = () => {}
12} = (config.hasDtrace ? internalBinding('dtrace') : {});
13
14module.exports = {
15  DTRACE_HTTP_CLIENT_REQUEST,
16  DTRACE_HTTP_CLIENT_RESPONSE,
17  DTRACE_HTTP_SERVER_REQUEST,
18  DTRACE_HTTP_SERVER_RESPONSE,
19  DTRACE_NET_SERVER_CONNECTION,
20  DTRACE_NET_STREAM_END
21};
22