Skip to content

refactor(collectors): use KCENON_WITH_MONITORING_SYSTEM from feature_flags#164

Merged
kcenon merged 4 commits into
mainfrom
feature/163-use-kcenon-has-monitoring-system
Dec 23, 2025
Merged

refactor(collectors): use KCENON_WITH_MONITORING_SYSTEM from feature_flags#164
kcenon merged 4 commits into
mainfrom
feature/163-use-kcenon-has-monitoring-system

Conversation

@kcenon

@kcenon kcenon commented Dec 23, 2025

Copy link
Copy Markdown
Owner

Summary

  • Replace BUILD_WITH_MONITORING_SYSTEM with KCENON_WITH_MONITORING_SYSTEM to align monitoring integration gates with the unified macro set from common_system
  • Include feature_flags.h in message_bus_collector headers for proper macro detection
  • Update CMake definitions to use WITH_MONITORING_SYSTEM (which feature_flags.h maps to KCENON_WITH_MONITORING_SYSTEM)

Changes

  • include/kcenon/messaging/collectors/message_bus_collector.h: Add feature_flags.h include, replace #ifdef BUILD_WITH_MONITORING_SYSTEM with #if KCENON_WITH_MONITORING_SYSTEM
  • src/impl/collectors/message_bus_collector.cpp: Update preprocessor guards to use KCENON_WITH_MONITORING_SYSTEM
  • CMakeLists.txt: Define WITH_MONITORING_SYSTEM instead of BUILD_WITH_MONITORING_SYSTEM
  • cmake/UnifiedDependencies.cmake: Update similarly
  • docs/CHANGELOG.md: Update documentation to reference KCENON_WITH_MONITORING_SYSTEM
  • docs/integration/README.md: Update prerequisites section for monitoring integration

Test plan

  • Verify CMake configuration succeeds with monitoring_system available
  • Verify CMake configuration succeeds without monitoring_system
  • Verify monitoring integration compiles correctly when enabled

Closes #163

…flags

Replace BUILD_WITH_MONITORING_SYSTEM with KCENON_WITH_MONITORING_SYSTEM
to align monitoring integration gates with the unified macro set from
common_system.

Changes:
- Include feature_flags.h in message_bus_collector headers
- Replace #ifdef BUILD_WITH_MONITORING_SYSTEM with #if KCENON_WITH_MONITORING_SYSTEM
- Update CMakeLists.txt to define WITH_MONITORING_SYSTEM instead of
  BUILD_WITH_MONITORING_SYSTEM (feature_flags.h uses this to set
  KCENON_WITH_MONITORING_SYSTEM)
- Update cmake/UnifiedDependencies.cmake similarly

Closes #163
Update documentation to reference the new KCENON_WITH_MONITORING_SYSTEM
macro instead of BUILD_WITH_MONITORING_SYSTEM.
… IExecutor support

The thread_pool class conditionally inherits from IExecutor interface
only when KCENON_HAS_COMMON_EXECUTOR=1 is defined. Without this
definition, standalone_backend::get_executor() fails to compile because
shared_ptr<thread_pool> cannot be converted to shared_ptr<IExecutor>.

This fix enables the IExecutor interface inheritance in thread_pool
when common_system is linked, allowing proper type conversion in
standalone_backend.
…ECUTOR fix

- Add changelog entry for the IExecutor support build fix
- Document KCENON_HAS_COMMON_EXECUTOR prerequisite in integration README
@kcenon kcenon merged commit 8d05110 into main Dec 23, 2025
12 of 13 checks passed
@kcenon kcenon deleted the feature/163-use-kcenon-has-monitoring-system branch December 23, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use KCENON_HAS_MONITORING_SYSTEM

1 participant