Sibelius Seraphini
Sibelius Seraphini
it works if you make it external
this code do not capture ``` async function fetchWithTimeout() { const controller = new AbortController(); const timeout = setTimeout(() => { controller.abort(); // Trigger abort after 3 seconds }, 3000);...
``` {"log.level":"debug","@timestamp":"2024-12-09T19:15:20.832Z","log.logger":"elastic-apm-node","ecs.version":"8.10.0","message":"intercepted request event call to http.Server.prototype.emit for /api/timeout2"}
``` async function captureAbortMiddleware(ctx: Koa.Context, next: Koa.Next) { // Listen for 'close' events to detect aborts ctx.req.on('close', () => { if (!ctx.res.writableEnded) { console.log('Client aborted the request'); if (apm.currentTransaction) {...
this code is not working well any other solution for this ?
can I disable tracestate and traceparent for some domains and keep the others?
it is similar to this one https://discuss.elastic.co/t/how-to-disable-tracestate-and-traceparent-headers/324164 bank APIs are very strict, if you add another header that is not expected the request is broken
I'd like to disable these headers for some requests, hostname, but not for all
what is the best way to add these options?
here is my patch ```diff diff --git a/lib/instrumentation/http-shared.js b/lib/instrumentation/http-shared.js index b01397c9238f9e899262a38a232a10769afe4b6c..286ac297e3c940e5702ade1ffbff4e4e912f83d9 100644 --- a/lib/instrumentation/http-shared.js +++ b/lib/instrumentation/http-shared.js @@ -275,12 +275,32 @@ exports.traceOutgoingRequest = function (agent, moduleName, method) { parentRunContext.currTransaction(); if (parent)...