-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Should we introduce a pkg
module directory?
#9725
Comments
What would be the criteria to have something be in Personally, I don't like |
Most of the things we have in core are libraries, so I wouldn't group them under pkg. For contrib, I can see the reason: most of the things there are components, and grouping the libraries used by then under pkg can help make them discoverable. |
Mostly, yes. |
It's also the case for core, where we have the component directories that would be better to highlight in some way. |
I'm okay with going without |
Agree on not adding |
Happy to continue w/o a |
Closing based on the feedback |
We already have 17 root directories for modules with exported API. It's a pretty long list which can be hard to navigate. Some of them are important and reflect the collector's configuration interfaces in some way, e.g.
exporter
,receiver
,processor
,connector
,extension
,service
. Some other directories are pretty small and serve a specific purpose, e.g.:client
,semconv
,confmap
.Currently, we have a need to introduce another utilitarian module that probably shouldn't be at the root level:
filter
. See #9660 (comment).Should we introduce
pkg
directory in this repo similar to https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg and put the newfilter
module there?We can probably keep
pdata
andfeaturegate
at the root level since they reached 1.x along withexporter
,receiver
,processor
,connector
,extension
,service
, but can consider moving other modules likeclient
,semconv
,confmap
topkg
as well.The text was updated successfully, but these errors were encountered: