diff --git a/rclcpp/include/rclcpp/any_subscription_callback.hpp b/rclcpp/include/rclcpp/any_subscription_callback.hpp index 6a813c222b..e1ac86a230 100644 --- a/rclcpp/include/rclcpp/any_subscription_callback.hpp +++ b/rclcpp/include/rclcpp/any_subscription_callback.hpp @@ -246,6 +246,16 @@ class AnySubscriptionCallback rclcpp_callback_register, (const void *)this, get_symbol(shared_ptr_with_info_callback_)); + } else if (const_shared_ptr_callback_) { + TRACEPOINT( + rclcpp_callback_register, + (const void *)this, + get_symbol(const_shared_ptr_callback_)); + } else if (const_shared_ptr_with_info_callback_) { + TRACEPOINT( + rclcpp_callback_register, + (const void *)this, + get_symbol(const_shared_ptr_with_info_callback_)); } else if (unique_ptr_callback_) { TRACEPOINT( rclcpp_callback_register,