You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normally HTTP requests to the APM Server should be ignored by the agent so that it doesn't create spans for the request to the APM Server it sends it self.
I've actually been thinking it might be handy to have a helper function to explicitly escape the transaction continuation when we want to do internal async things. 🤔
Something like this could work:
Agent.prototype.escape=function(fn){vartrans=this.currentTransactionthis.currentTransaction=nullvarresult=fn()this.currentTransaction=transreturnresult}agent.escape(()=>{// This code will exist outside the transaction})
Normally HTTP requests to the APM Server should be ignored by the agent so that it doesn't create spans for the request to the APM Server it sends it self.
But it's seems that sometimes these requests are not ignored: https://discuss.elastic.co/t/how-to-exclude-apm-self-sent-events-capturing/160134
The text was updated successfully, but these errors were encountered: