You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**STOP UPGRADE IMMEDIATELY** if upgrading any dependency with `opentelemetry` in the name and the new version depends on OpenTelemetry SDK/API v2.x or higher.
45
+
**STOP UPGRADE IMMEDIATELY** if upgrading any dependency with `opentelemetry` in the name and the new version or any of its dependencies uses forbidden OpenTelemetry versions.
46
+
47
+
**FORBIDDEN VERSION PATTERNS:**
48
+
- `2.x.x` versions (e.g., `2.0.0`, `2.1.0`)
49
+
- `0.2xx.x` versions (e.g., `0.200.0`, `0.201.0`)
46
50
47
51
When upgrading OpenTelemetry dependencies:
48
52
1. Check the dependency's `package.json` after upgrade
49
-
2. Verify none of its dependencies use `@opentelemetry/*` packages at v2.0.0 or higher
50
-
3. If v2+ OpenTelemetry dependencies are detected, **ABORT the upgrade** and notify the user that this upgrade cannot proceed due to OpenTelemetry v2 compatibility constraints
53
+
2. Verify the package itself doesn't use forbidden version patterns
54
+
3. Verify none of its dependencies use `@opentelemetry/*` packages with forbidden version patterns
55
+
4. **Example**: `@opentelemetry/[email protected]` is forbidden because it bumped to core `2.0.0` and instrumentation `0.200.0`
56
+
5. If forbidden OpenTelemetry versions are detected, **ABORT the upgrade** and notify the user that this upgrade cannot proceed due to OpenTelemetry v2+ compatibility constraints
51
57
52
58
#### CRITICAL: E2E Test Dependencies
53
59
@@ -66,7 +72,7 @@ When upgrading OpenTelemetry dependencies:
66
72
1. **Backup**: Ensure clean git state or create backup branch
67
73
2. **CI Status**: Verify all tests are passing
68
74
3. **Lockfile works**: Confirm `yarn.lock` is in a good state (no merge conflicts)
69
-
4. **OpenTelemetry Check**: For OpenTelemetry dependencies, verify no v2+ dependencies will be introduced
75
+
4. **OpenTelemetry Check**: For OpenTelemetry dependencies, verify no forbidden version patterns (`2.x.x` or `0.2xx.x`) will be introduced
70
76
71
77
### Post-Upgrade Verification
72
78
@@ -147,7 +153,7 @@ yarn info <package-name> versions
147
153
```
148
154
149
155
The `yarn info` command provides detailed dependency information without requiring installation, making it particularly useful for:
0 commit comments