Skip to content

Conversation

@abhilash-sivan
Copy link
Contributor

@abhilash-sivan abhilash-sivan commented Nov 12, 2025

This PR resolves the following issues and prepares the codebase for errorOnly stackTrace feature:

  • Optimize the instrumenation for stack creation
  • Opitmization on span.data.[technology].error

@abhilash-sivan abhilash-sivan changed the title refactor: sample for refactoring error stack collection refactor: update error stack collection logic Nov 19, 2025
* @param {Array.<InstanaCallSite>} stack - The stack trace array
* @returns {Array.<InstanaCallSite>} Filtered stack trace containing only customer code
*/
exports.filterCustomerCode = function filterCustomerCode(stack) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to use filtering as we delay the span stack trace, our internal calls are being added to the stack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants