We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a64340b commit 5fd6690Copy full SHA for 5fd6690
packages/dd-trace/src/profiling/profilers/wall.js
@@ -70,7 +70,9 @@ function ensureChannelsActivated () {
70
class NativeWallProfiler {
71
constructor (options = {}) {
72
this.type = 'wall'
73
- this._asyncIdEnabled = !!options.asyncIdEnabled
+ // Currently there's a crash sometimes on worker threads trying to collect async IDs so for the
74
+ // time being we'll constrain it to only the main thread.
75
+ this._asyncIdEnabled = !!options.asyncIdEnabled && require('worker_threads').isMainThread
76
this._codeHotspotsEnabled = !!options.codeHotspotsEnabled
77
this._cpuProfilingEnabled = !!options.cpuProfilingEnabled
78
this._endpointCollectionEnabled = !!options.endpointCollectionEnabled
0 commit comments