-
Notifications
You must be signed in to change notification settings - Fork 239
Open
Labels
agent-nodejsMake available for APM Agents project planning.Make available for APM Agents project planning.bug
Description
During #1781 I also stumbled over the following behavior:
When wrapping a function called request the http instrumentation seems to get triggered:
var originalRequest = prisma.fetcher.request
var newRequest = async function(object) {
var span = apm.startSpan('Query Engine (prisma.fetcher.request)')
var result = await originalRequest.call(this, object)
span.end()
return result
}
prisma.fetcher.request = newRequestleads to this debug output:
no active transaction found - cannot build new span
intercepted call to http.request { id: null }
and quite some confusion.
The workaround or solution is to configure the instrumentation to ignore http: disableInstrumentations: ['http'] in apm.start().
Metadata
Metadata
Assignees
Labels
agent-nodejsMake available for APM Agents project planning.Make available for APM Agents project planning.bug