[pkg/scraperhelper] Switch scraper/scraperhelper to schema-based configuration#15318
Conversation
Merging this PR will not alter performance
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15318 +/- ##
==========================================
- Coverage 91.25% 91.23% -0.02%
==========================================
Files 706 708 +2
Lines 46165 46171 +6
==========================================
- Hits 42127 42124 -3
- Misses 2830 2836 +6
- Partials 1208 1211 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Assisted-by: ChatGPT 5
a0ea863 to
18cc709
Compare
| "time" | ||
| ) | ||
|
|
||
| // ControllerConfig ControllerConfig defines common settings for a scraper controller configuration. Scraper controller receivers can embed this struct, instead of receiver.Settings, and extend it with more fields if needed. |
There was a problem hiding this comment.
ControllerConfig is duplicated. Let's fix this separately
Description
Switch
scraper/scraperhelperControllerConfigto schema-based generated configuration.This adds metadata-driven config generation for the scraper controller settings, publishes the reusable
controller_configschema frompkg/scraperhelper, and updates the mdatagen sample scraper to embed that exported config via schema reference.Link to tracking issue
Fixes #15258
Testing
Added usage example to
samplescrapertest component.