Skip to content

Conversation

@abhilash-sivan
Copy link
Contributor

refs INSTA-63749

This PR introduces a filter in the current implementation to remove Node.js internal frames and Instana instrumentation frames from span stack traces. This is needed as part of the refactoring of our stack-generation logic.

Right now, the stack_trace is generated before instrumentation, which correctly captures only the customer application flow. However, after moving stack generation to occur after instrumentation — especially in certain error scenarios and once monkey-patching begins — the stack trace starts including internal instrumentation calls. As a result, we lose the relevant application information. This PR ensures we continue to capture only the meaningful stack frames

@abhilash-sivan
Copy link
Contributor Author

Will optionally add prettify functionality later, which is specified in the technical specification. Not important right now

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