docs(guides): add comprehensive collector development guide#465
Merged
Conversation
Create docs/guides/COLLECTOR_DEVELOPMENT.md covering: - CRTP collector_base<T> pattern with diagrams - Complete custom collector implementation walkthrough - Platform-specific patterns (#ifdef vs Strategy) - Thread safety requirements and atomic patterns - Factory registration (3 methods) and creation APIs - Testing strategies (unit, factory, platform, performance, thread safety) - Built-in collector catalog (17 collectors across 4 categories)
7 tasks
kcenon
added a commit
that referenced
this pull request
Apr 13, 2026
Create docs/guides/COLLECTOR_DEVELOPMENT.md covering: - CRTP collector_base<T> pattern with diagrams - Complete custom collector implementation walkthrough - Platform-specific patterns (#ifdef vs Strategy) - Thread safety requirements and atomic patterns - Factory registration (3 methods) and creation APIs - Testing strategies (unit, factory, platform, performance, thread safety) - Built-in collector catalog (17 collectors across 4 categories)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #455
Summary
docs/guides/COLLECTOR_DEVELOPMENT.md(1055 lines) covering all 7 sections from the issue specificationcollector_base.h,collector_plugin.h,metric_factory.h,collector_adapters.h, and existing collector implementationsSections
collector_base<T>CRTP vscollector_plugin), factory system diagram, interface comparison table, collection lifecyclecreate_base_metricusage, configuration convention, alternative plugin approach, hybrid CRTP+plugin pattern#ifdefguards vs Strategy pattern with decision table, platform detection macros, graceful fallback patterns, Windows include orderingTest Plan
Verification Notes
<domain>.<metric_name>) consistent with existing collectorscollector_base<T>andcollector_pluginAPIs match actual header signatures