* build: refactor CMake scripts to use functions for variable scope
Wrap multiple CMake scripts in functions to restrict variable scope and prevent unintended resets. This ensures better modularity and maintainability in the build process while adhering to modern CMake best practices.
* refactor: simplify opentelemetry fetch logic
Streamline the handling of OpenTelemetry dependencies by removing unnecessary function wrappers and directly implementing the fetching logic. This improves readability and maintainability while ensuring that relevant variables are correctly set within the proper scope.
* refactor: encapsulate OpenTelemetry configuration in a function
Wrap the OpenTelemetry setup in a function to limit variable scope, improving code organization and maintainability.
Streamline the process of finding and downloading Boost by removing unnecessary checks and consolidating the logic, making it easier to manage and maintain dependencies.