Is your feature request related to a problem? Please describe.
We could trace user timings emitted by perf_hooks with trace_events flag: node --trace-event-categories node.perf.
Since http also supports to be observed with perf_hooks (#28486), it might be useful to be traced by --trace-event-categories too.
Describe the solution you'd like
node --trace-event-categories node.http could export events emitted by http module.
Describe alternatives you've considered
If I got it right, there is no userspace API to record trace events manually.
Is your feature request related to a problem? Please describe.
We could trace user timings emitted by
perf_hookswithtrace_eventsflag:node --trace-event-categories node.perf.Since
httpalso supports to be observed withperf_hooks(#28486), it might be useful to be traced by--trace-event-categoriestoo.Describe the solution you'd like
node --trace-event-categories node.httpcould export events emitted byhttpmodule.Describe alternatives you've considered
If I got it right, there is no userspace API to record trace events manually.