-
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
[Chore] Migration error and helper into scraper model #11166
base: main
Are you sure you want to change the base?
Conversation
receiver/scraper/helper/internal/metadata/generated_telemetry.go
Outdated
Show resolved
Hide resolved
cc @mx-psi plta. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! This is a good start, I have two comments:
- Can we keep the original names (
scraperhelper
,scrapererror
)? When importing, Go will only use the package name, so we tend to repeat the parent package name if the name is not specific - To help in the transition, we should keep the original
scraper
packages for one release as documented here: https://github.com/open-telemetry/opentelemetry-collector/blob/main/CONTRIBUTING.md#breaking-changes. To do this, you can have a type alias for each symbol like this:
type ScrapeFunc = scraperhelper.ScrapeFunc
We then can deprecate the whole package as mentioned here https://go.dev/wiki/Deprecated#examples
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11166 +/- ##
==========================================
+ Coverage 91.79% 91.86% +0.06%
==========================================
Files 432 438 +6
Lines 20426 20645 +219
==========================================
+ Hits 18751 18965 +214
- Misses 1301 1302 +1
- Partials 374 378 +4 ☔ View full report in Codecov by Sentry. |
Looks like this needs a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try to make this to preserve history. in the old packages (to simplify migration) would be easier to make the old types/funcs aliases of the new one.
@@ -0,0 +1 @@ | |||
include ../../Makefile.Common |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include ../../Makefile.Common | |
include ../../Makefile.Common | |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Description
Move helper and error packages into scraper module.
Link to tracking issue
Fixes #11003
Testing
Documentation