Skip to content

feat: support sourcemap resolution for *ESM* stack frames in captured APM errors #4578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

trentm
Copy link
Member

@trentm trentm commented Apr 22, 2025

This also modernizes the examples/typescript/... a bit and (notably) changes it to use ESM.
This was the repro example I was using for this fix -- though I removed the apm.captureError(...) I was manually using in examples/typescript/index.ts for dev.

Yes, I don't have a test case here. We should discuss if we're going to require that.

@trentm trentm requested a review from david-luna April 22, 2025 23:25
@trentm trentm self-assigned this Apr 22, 2025
@david-luna
Copy link
Member

Yes, I don't have a test case here. We should discuss if we're going to require that.

Thew change is quite straight forward and not changing existing behavior. I'm okay to not have a test if it requires to have another TypeScript project as a fixture.

@trentm trentm merged commit b05ecaf into main Apr 23, 2025
21 checks passed
@trentm trentm deleted the trentm/sourcemaps-in-esm branch April 23, 2025 19:05
trentm added a commit that referenced this pull request Apr 23, 2025
# highlights

- #4578
@trentm trentm mentioned this pull request Apr 23, 2025
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