|
| 1 | +# Bump OpenTelemetry instrumentations |
| 2 | + |
| 3 | +1. Ensure you're on the `develop` branch with the latest changes: |
| 4 | + - If you have unsaved changes, stash them with `git stash -u`. |
| 5 | + - If you're on a different branch than `develop`, check out the develop branch using `git checkout develop`. |
| 6 | + - Pull the latest updates from the remote repository by running `git pull origin develop`. |
| 7 | + |
| 8 | +2. Create a new branch `bump-otel-{yyyy-mm-dd}`, e.g. `bump-otel-2025-03-03` |
| 9 | + |
| 10 | +3. Create a new empty commit with the commit message `feat(deps): Bump OpenTelemetry instrumentations` |
| 11 | + |
| 12 | +4. Push the branch and create a draft PR, note down the PR number as {PR_NUMBER} |
| 13 | + |
| 14 | +5. Create a changelog entry in `CHANGELOG.md` under |
| 15 | + `- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott` with the following format: |
| 16 | + `- feat(deps): Bump OpenTelemetry instrumentations ([#{PR_NUMBER}](https://github.com/getsentry/sentry-javascript/pull/{PR_NUMBER}))` |
| 17 | + |
| 18 | +6. Find the "Upgrade OpenTelemetry instrumentations" rule in `.cursor/rules/upgrade_opentelemetry_instrumentations` and |
| 19 | + follow those complete instructions step by step. |
| 20 | + - Create one commit per package in `packages/**` with the commit message |
| 21 | + `Bump OpenTelemetry instrumentations for {SDK}`, e.g. `Bump OpenTelemetry instrumentation for @sentry/node` |
| 22 | + |
| 23 | + - For each OpenTelemetry dependency bump, record an entry in the changelog with the format indented under the main |
| 24 | + entry created in step 5: `- Bump @opentelemetry/{instrumentation} from {previous_version} to {new_version}`, e.g. |
| 25 | + `- Bump @opentelemetry/instrumentation from 0.204.0 to 0.207.0` **CRITICAL**: Avoid duplicated entries, e.g. if we |
| 26 | + bump @opentelemetry/instrumentation in two packages, keep a single changelog entry. |
| 27 | + |
| 28 | +7. Regenerate the yarn lockfile and run `yarn yarn-deduplicate` |
| 29 | + |
| 30 | +8. Run `yarn fix` to fix all formatting issues |
| 31 | + |
| 32 | +9. Finally update the PR description to list all dependency bumps |
0 commit comments