Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Add v8 Transformers #1

Closed
Lms24 opened this issue Aug 21, 2023 · 0 comments
Closed

Add v8 Transformers #1

Lms24 opened this issue Aug 21, 2023 · 0 comments

Comments

@Lms24
Copy link
Member

Lms24 commented Aug 21, 2023

Based on

we want to try to automate as many migration tasks to help people upgrade from v7 to v8. This will be done by creating one transformer for each migration step which will autonomously do the following for each file:

  • check if it should apply any modification to the file
  • if yes, apply said modification to the file
    • if it fails doing so, provide instructions what users need to do (this could be a copy/paste code sample or a link to a document describing what to do, depending on what better fits the necessary change).
### Import Rewriting
- [ ] https://github.com/getsentry/sentry-migr8/issues/2
- [ ] https://github.com/getsentry/sentry-migr8/issues/10
- [ ] https://github.com/getsentry/sentry-migr8/issues/11
- [ ] https://github.com/getsentry/sentry-migr8/issues/12
- [ ] https://github.com/getsentry/sentry-migr8/issues/8
### Config rewrites
- [x] [Node] Move `tracePropagationTargets` from integration options to top-level options
- [x] [Browser] Replace `tracingOrigins` with top-level `tracePropagationTargets` option
- [x] [Browser] Replace integration-level `tracePropagationTargets` with top-level `tracePropagationTargets` option
- [ ] Replace `parseRequest` calls with `addRequestDataToEvent`
- [x] Replace `Replay` integration sample rates with top-level replay sample rates
- [ ] https://github.com/getsentry/sentry-migr8/issues/3
### Function call replacements
- [x] `severityFromString` → `severityLevelFromString`
- [x] `getGlobalObject` → `GLOBAL_OBJ` / `WINDOW`
- [ ] https://github.com/getsentry/sentry-migr8/issues/13
- [x] `timestampWithMs` → `timestampInSeconds`
### Other API transforms
- [x] Replace `SpanStatus` enum with string literals
- [x] Replace `Severity` enum with string literals
### Framework-specific transforms
- [ ] https://github.com/getsentry/sentry-migr8/issues/4
- [ ] https://github.com/getsentry/sentry-migr8/issues/5
- [ ] https://github.com/getsentry/sentry-migr8/issues/6
### [requires v8] Assist in Updating Procedure
- [ ] https://github.com/getsentry/sentry-migr8/issues/7
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants