-
Notifications
You must be signed in to change notification settings - Fork 532
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
chore: rename workspace dirs to match the base of the package name #2223
base: main
Are you sure you want to change the base?
Conversation
This means dropping the 'opentelemetry-' prefix on a lot of workspace dirs, and also fixing a couple odd balls: - instrumentation-cassandra -> instrumentation-cassandra-driver - opentelemetry-test-utils -> contrib-test-utils
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2223 +/- ##
==========================================
- Coverage 90.97% 90.37% -0.61%
==========================================
Files 146 147 +1
Lines 7492 7502 +10
Branches 1502 1571 +69
==========================================
- Hits 6816 6780 -36
- Misses 676 722 +46
|
tldr; I'm a yes to all proposals here including the "extreme" version. On the main update: consensus in the SIG meeting today was agreement in dropping The renaming of the oddballs is also the right move. The general rule we're abiding by here is the package name should match the directory name. 👍 Finally, the "extreme" version of the directory changes. I am in favor of this but I think it's worthwhile to add some pros and cons to the possible approaches to take (everything in packages/ or all split by web/node/common, etc) to help folks consider the options. |
@JamieDanielson Thanks for summarizing the SIG discussion! |
options
my opinionsI'm in favour of option 3. I think the "which contrib packages are related to web/browser usage" could be solved by any of:
|
@MSNev Please let me know if that above fairly describes the concerns you had with option 3 in the SIG. |
The is also a probable "middle" ground where there is no "node" folder but rather just |
These are the instrumentations currently slated to get rewritten to use events:
I assumed they would be new packages (vs updating the current), so this could be an opportunity to use a new name that includes "web" or "browser". I think @martinkuba would know more about whether I'm correct in that assumption. |
✅ There was follow-up discussion on this and the decision was made that these new instrumentation package names should be prefixed or suffixed with So the remaining question seems to be whether the web packages need to be in a separate subdirectory from everything else. Most attendees of two separate JS SIG meetings expressed interest in keeping everything in the packages directory without a subdirectory, as there didn't seem to be a strong enough reason to keep them separated. Wanted to offer up the opportunity for more web-focused folks to chime in on whether there is a strong objection to this, and a strong reasoning as to why web packages should be in a web subdirectory. @scheler @martinkuba @MSNev @pkanal tagging you as the folks most involved here. |
This means dropping the 'opentelemetry-' prefix on a lot of workspace dirs,
and also fixing a couple odd balls:
discussion
Update: see this comment below for an enumeration of options with Pros/Cons.
We've discussed at least once wanting to fix the package dir names to drop the "opentelemetry-" prefix. This is a draft PR to show what that might look like. Thoughts?
Pros:
Cons:
Extreme version:
./packages/${name}
, e.g../packages/instrumentation-express
next to./packages/resource-detector-aws
. Then it is straightforward what the workspace dir is for a given package name (excluding "incubator" and "archive"d packages). Thoughts? If anyone is interested, I could create a draft PR to show what that looks like -- I have this renaming mostly scripted (https://gist.github.com/trentm/23591b5bde546a0f2f4b5b057b9d3ad9).summary of dir renames